Skip to content

Commit

Permalink
Security edit to Apache configuration mod_rewrite - "410 Gone"
Browse files Browse the repository at this point in the history
* Block script attacks
  • Loading branch information
nfreear committed Feb 6, 2018
1 parent f6d53d4 commit 2ab1c9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/_data/openessayist.open.ac.uk-apache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ NameVirtualHost *:80
# https://codex.wordpress.org/htaccess
RewriteEngine on
RewriteBase /
# Block script attacks (gone = 410)
RewriteRule (phpmyadmin|setup|install|sql|db) - [nocase,gone]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Expand Down

0 comments on commit 2ab1c9a

Please sign in to comment.