CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   not sure what this rewrite does (http://www.codingforums.com/showthread.php?t=275003)

durangod 10-03-2012 04:41 AM

not sure what this rewrite does
 
Hi this must be a good thing i think it has to do with base 64 encoding protection but im not really sure what it does. this is in one of my subdomains, i added it awhile back from a converstion with my old host tech support but again i would like to put some doc in the htaccess file as to what it does so i can remember lol..

follow symlinks is about this, and i read about that, that is a good thing so i will leave that.

Code:


RewriteEngine On
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index_error.php [F,L]
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]



All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.