Skip to content

Instantly share code, notes, and snippets.

@AlexL-JWA
Created August 26, 2018 16:46
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 AlexL-JWA/6e1d43be8868058f11295c72b122756e to your computer and use it in GitHub Desktop.
Save AlexL-JWA/6e1d43be8868058f11295c72b122756e to your computer and use it in GitHub Desktop.
new httacess WP
# BEGIN WordPress
#Order Allow,Deny
#Deny from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (&lt;|%3C)([^s]*s)+cript.*(&gt;|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|\\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|\\%[0-9A-Z]{0,2})
RewriteCond %{query_string} concat.*\( [NC,OR]
RewriteCond %{query_string} union.*select.*\( [NC,OR]
RewriteCond %{query_string} union.*all.*select [NC]
#RewriteRule ^(.*)$ index.php [F,L]
RewriteCond %{QUERY_STRING} author=\d
RewriteRule ^ /? [L,R=301]
</IfModule>
#Options +FollowSymLinks -Indexes
SetEnvIf user-agent «Indy Library» stayout=1
SetEnvIf user-agent «libwww-perl» stayout=1
SetEnvIf user-agent «Wget» stayout=1
deny from env=stayou
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment