I know this thread is outdated but it’s the first link that showed up when looking for a tutorial to protect a directory in CyberPanel, I thought I would help if someone needs this, here’s a basic tutorial on how to do this simply: How to Password Protect OpenLiteSpeed with Basic Auth and Realms - YouTube