How to password protect a directory on your website using NiuX (New control panel)


Login to your account

Manage website

Hit Settings then Security on the menu

Browse down to Manage Password Protection

Now click add

This menu below should appear choose the directory to protect

In my case the folder within public_html is called “premium-members-area”

I have chose superadmin and a password to login to it with.

The directory should now appear as protected

If anyone tries to access premium-members-area on your website then they’ll get the login window.

Login using the details you created

Now the page will load and all contents will be displayed or the page will show if you’ve got one uploaded

.htaccess and .htpasswd placed into a new folder to password protect not working
How do I create a password protected directory 2016
How to lock files in public_html for normal user
How to protect website directories