Use .htaccess like a protector…
Protect your blog from script injections with .htaccess. With this file we can make a lot of things. Today we insert a protect code into this file. Make backup and see how to make it… Let’s Begin
Here is the code;
Simply paste this code into your .htaccess file. Make backup before change file.
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]
That’s All!
- Wordpress















Made by Symmetric Web
Distributed by Smashing Magazine
No comments yet!