Skip to content

Simple .htaccess file for preventing directory listing on the web server.

License

Notifications You must be signed in to change notification settings

vivek-pancholi/htaccess-protection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

htaccess-protection

Simple .htaccess file for preventing directory listing on the apache web server.

Disabling Directory Listing on Apache Web Server!

In order to disable directory listing on an Apache web server you have to create a .htaccess file in the related application directory. You can add the following lines to the httpd.conf file or replace the existing lines with the following:

As you can see from the example code above, you should remove the Indexes and MultiViews statements for the directory listing feature will be disabled safely on an Apache web server.

Follow this process to solve directory listing vulnerability!

About

Simple .htaccess file for preventing directory listing on the web server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published