htaccess to stop files listing & executing any file inside folder

# htaccess to stop files listing on folder and stop executing any file inside folder like config.ini file etc which are not need to display in the browser

IndexIgnore */* (It will stop files listing for specific folder)

# deny access to all files of folder

Order allow,deny
Deny from all
Satisfy All

Forbidding a particular file:

You can forbid a particular file using its name and extension.

order allow,deny
deny from all

This entry was posted on Tuesday, July 13th, 2010 at 7:35 pm and is filed under Apache, PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “htaccess to stop files listing & executing any file inside folder”

  1. Grover Pallas Says:

    Bookmarked your website. We appreciate you expressing. Surely really worth time far from my tests.

Leave a Reply