SL Talkz

Full Version: How to disable directory browsing? (apache)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is a method to prevent directory browsing in apache. It can be your root or a sub directory.

Let's assume this you have a folder Downloads that wants to disable access from web browser.

you have to create the .htaccess file with the following in the directory you want to disable access.

Code:
Options -Indexes

simple as it is.
Get Your Existing .htaccess File, If Any. Connect to your website using an FTP or SFTP software. ... Make a Backup of the .htaccess File. ... Create or Open the .htaccess File. ...
Disable Indexing. ...
Saving and Uploading the File. ...
Test Your Site. Feel free to surf college paper writing service
Excellent suggestions found here. Thanks for suggestion.









BMS College of Engineering Admission
PES university direct admission