-
April 1st, 2012, 12:18 PM
#1
How to Disable Directory Browsing on Linux Sites
To disable Directory Browsing on a Linux (cPanel) server, you'll need to create a .htaccess file in your 'public_html' directory with the following code inside:
If your site already has a .htaccess file in the public_html folder, then just add the code to the top line of that file.
-
May 12th, 2013, 11:10 AM
#2
You can also add index.html into the folders where you dont want anyone to see its content. Or .htaccess with this line:
deny from all
it will ensure no one will be able to access the folder.
I have this in my htaccess:
RewriteEngine On
Options +FollowSymLinks
Options -Indexes
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules