Skip to content

Commit

Permalink
Merge pull request #910 from mikealmond/master
Browse files Browse the repository at this point in the history
Adding php dist files to the blocked extensions list
  • Loading branch information
mathiasbynens committed Jan 13, 2012
2 parents 0129649 + 0f95077 commit f4cd5c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .htaccess
Expand Up @@ -464,15 +464,15 @@ AddCharset utf-8 .css .js .xml .json .rss .atom
# includes directories used by version control systems such as Subversion or Git.
<IfModule mod_rewrite.c>
RewriteCond %{SCRIPT_FILENAME} -d
RewriteCond %{SCRIPT_FILENAME} -f
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)\." - [F]
</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)$">
<FilesMatch "\.(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp|dist)$">
Order allow,deny
Deny from all
Satisfy All
Expand Down

0 comments on commit f4cd5c1

Please sign in to comment.