Anyone can access subdirectories of public_html (folder containing all the public files of your hosting account) using a web browser. To restrict access to a particular directory under public_html:
- Connect to cPanel
- Click Directory Confidentiality in the Security topic. There you will find a list of subfolders.
- Click the folder icon to the left of public_html to see its contents. You will now see the subdirectories of public_html.
- To select a folder to protect, click its link (not the icon).
- On the Security Settings page, select the Protect this directory with a password checkbox.
- In the Protected directory name field, enter the title you want to assign to the selected directory, for example 'My Protected Folder'.
- Click Save
- At the bottom of the page, create a username and password that will be used to access this folder.
- Click Add/Edit Authorized User
- Check that the chosen directory is well and truly secure with the information provided by accessing your page directly via your web browser.
Note: You can only protect folders, not individual files.
- 0 Users Found This Useful
What is an alias? An alias is a special domain name configuration that allows a second domain...
Hotlink protection is a security feature in cPanel designed to reduce bandwidth consumption. It...
Cron jobs can easily be deleted from cPanel. Here’s how: Log in to cPanel through...
If for whatever reason, you need to block a specific IP address from accessing your website, you...
You will receive a “550 Mailbox quota exceeded” error when you attempt to send an...