How to disable directory listing from cPanel
To disable directory listing / browsing from cPanel, follow these steps:
1) Login to your cPanel
2) Click on File Manager
3) Open "public_html" folder and create a .htaccess [You can also create it inside to any other directory.]
4) Include any of the following as per the requirements:
Options -Indexes [To prevent all the directory and files.]
IndexIgnore * [The '*' represents a wildcard, this means it will not display any files.]
IndexIgnore *.zip [To prevent all files that end with '.zip' extension.]
IndexIgnore *.zip *.jpg *.gif [To prevent all files that end with '.zip', '.jpg], '.gif' extension.]
5) Click the Save Changes button to save your changes.
Was this answer helpful?
1) Login to your cPanel2) Click on File Manager3) Open "public_html" folder and create a...
To restrict access to directories on your website, you can use cPanel's built-in password...
In order to see the information about PHP version, compilation options and extensions, you will...
To increase the maximum upload size from cPanel, follow these steps:1) Login to your cPanel2)...
If you don't wish to change your domain's name servers and wants to check your your website with...