How to protect Directory Indexing?

Apache web server allow directory browsing by default. It?s always good to disable directory browsing in security aspect.

Disable directory browsing:

1. Login to your CPanel,
2. Click on Index Manager,
3. Directory will be list down. Click on the directory name which you want to disable the directory browsing,
4. Select No Index and click Save,
5. The directory browsing feature should be disable by now.


Under public_html make .htaccess and put this line "Options -Indexes" over there. Thats it.

  • 1 Users Found This Useful
Was this answer helpful?

Also Read

.htaccess against MySQL injections and other hacks!

MySQL injection attempts are one of the most common hacking attacks against PHP websites. If your...

How to Bypass MucaHost WordPress Login Security?

MucaHost servers have wordpress bruteforce protection, so you may see a POPUP Authorization box...

How to handle the Google Attack Page?

When you see the dreaded Google attack site warning, you should immediately email :...

Powered by WHMCompleteSolution