Skip to content

Instantly share code, notes, and snippets.

@joeybaker
Created May 10, 2012 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeybaker/2654959 to your computer and use it in GitHub Desktop.
Save joeybaker/2654959 to your computer and use it in GitHub Desktop.
Security for WordPress
<files wp-config.php>
order allow,deny
deny from all
</files>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment