Skip to content

Commit

Permalink
Merge pull request h5bp#846 from mikealmond/master
Browse files Browse the repository at this point in the history
Block access to backup/source/config files. Fixes issue h5bp#648
  • Loading branch information
Divya Manian committed Nov 7, 2011
2 parents 588e82c + 8b63415 commit ce11ab3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .htaccess
Expand Up @@ -446,6 +446,16 @@ AddCharset utf-8 .html .css .js .xml .json .rss .atom
</IfModule>


# Block access to backup and source files
# This files may be left by some text/html editors and
# pose a great security danger, when someone can access them
<FilesMatch ".(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>


# If your server is not already configured as such, the following directive
# should be uncommented in order to set PHP's register_globals option to OFF.
# This closes a major security hole that is abused by most XSS (cross-site
Expand Down

0 comments on commit ce11ab3

Please sign in to comment.