Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Plaats het volgende daarnaast in je .htaccess in de wordpress hoofddirectory
- Options +FollowSymlinks
- RewriteEngine On
- ## Disable the Server Signature
- ServerSignature Off
- ## Remove Spamming query's
- <ifModule mod_rewrite.c>
- RewriteCond %{QUERY_STRING} admin|install|other|words|here [NC]
- RewriteRule .* http://www.%{HTTP_HOST}/$1? [R=301,L]
- </ifModule>
- ## Protecting againts spam bots
- <IfModule mod_rewrite.c>
- RewriteCond %{REQUEST_METHOD} POST
- RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
- RewriteCond %{HTTP_REFERER} !.yourwebsite.com.* [OR]
- RewriteCond %{HTTP_USER_AGENT} ^$
- RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
- </IfModule>
- ## Prevent SQL Injections
- <IfModule mod_rewrite.c>
- RewriteBase /
- RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC]
- RewriteRule ^(.*)$ - [F,L]
- RewriteCond %{QUERY_STRING} \.\.\/ [NC,OR]
- RewriteCond %{QUERY_STRING} boot\.ini [NC,OR]
- RewriteCond %{QUERY_STRING} tag\= [NC,OR]
- RewriteCond %{QUERY_STRING} ftp\: [NC,OR]
- RewriteCond %{QUERY_STRING} http\: [NC,OR]
- RewriteCond %{QUERY_STRING} https\: [NC,OR]
- RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
- RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [NC,OR]
- RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [NC,OR]
- RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)||ĂȘ|"|;|\?|\*|=$).* [NC,OR]
- RewriteCond %{QUERY_STRING} ^.*("|'|<|>|\|{||).* [NC,OR]
- RewriteCond %{QUERY_STRING} ^.*(%24&x).* [NC,OR]
- RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F|127\.0).* [NC,OR]
- RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR]
- RewriteCond %{QUERY_STRING} ^.*(request|select|insert|union|declare).* [NC]
- RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
- RewriteRule ^(.*)$ - [F,L]
- </IfModule>
- ## Block specific wordpress installed files
- Options All -Indexes
- <files .htaccess>
- Order allow,deny
- Deny from all
- </files>
- <files readme.html>
- Order allow,deny
- Deny from all
- </files>
- <files license.txt>
- Order allow,deny
- Deny from all
- </files>
- <files install.php>
- Order allow,deny
- Deny from all
- </files>
- <files wp-config.php>
- Order allow,deny
- Deny from all
- </files>
- <files error_log>
- Order allow,deny
- Deny from all
- </files>
- <files version.php>
- Order allow,deny
- Deny from all
- </files>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement