Mar
24
Use htaccess to Deny Access Directory Listing
March 24, 2008 |
Don’t have an index in all your directory’s? Many people create a blank index.html file in every directory to prevent directory listing. It’s ok for a small website, but imagine if you have a website that has hundred or thousand directories.
The easiest way is to write a htaccess file, include the following line in your .htaccess file to deny access to all the directory listings, if there is no index file.
Options -Indexes
Similar Posts
- Block IPs Using htaccess
- Block people from Certain URL Using htaccess
- htaccess Explicitly Define Default Index File
- Use htaccess to Deny Access to hidden Files
- htaccess Deny Diractory Access During a Specific Time
- Deny Access to inc Files Using htaccess
- htaccess Permanently redirect file or directory
- Use htaccess to Fake Different File Extension
- Use htaccess with Site Maintenance Page
- htaccess Limit the Number of Concurrent Visitors to your Website
- htaccess gzip for Faster Loading and Bandwidth Saving
- htaccess Remove the www From Domain URL
- Google Text Translation Using htaccess
- Create Custom Error Pages Using htaccess PHP
- Use htaccess for 404 Redirect
- Apache htaccess Prevent Users from Uploading and Executing Files
- htaccess Require the www For Domain URL
- Remove File Extension Using htaccess
- Set Local Timezone Using htaccess
- Force Files Like PDF Download using htaccess
- Useful mod_rewrite Resources
- htaccess Conditional Loop Redirect


































