Skip to content

Commit

Permalink
Redirect common URLs requested by automated vulnerability scanners.
Browse files Browse the repository at this point in the history
  • Loading branch information
kittysnacks committed Sep 29, 2017
1 parent 272ce3a commit ef45a96
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ deny from all
deny from all
</Files>

# Annoying vulnerability scans
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*admin.*) http://localhost/$1 [R=301,L,NC]
RewriteRule (.*mysql.*) http://localhost/$1 [R=301,L,NC]
RewriteRule ^sql(.*) http://localhost/$1 [R=301,L,NC]
RewriteRule ^db(.*) http://localhost/$1 [R=301,L,NC]
RewriteRule ^php(.*) http://localhost/$1 [R=301,L,NC]
RewriteRule ^pma(.*) http://localhost/$1 [R=301,L,NC]

0 comments on commit ef45a96

Please sign in to comment.