SA-MP Forums Archive
Anti-Attack [Idea-Question] ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Anti-Attack [Idea-Question] ? (/showthread.php?tid=341944)



Anti-Attack [Idea-Question] ? - ayy90 - 12.05.2012

Does this work? Many have no idea.

Edit your root .htacesss and introduce your server ; This function blocking by base64_encode requests and blocking all attacks. (Only for SQL Servers)

Code :
__________________________________________________ ____________

RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
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})
RewriteCond %{QUERY_STRING} sbp(=|%20|%3D) [OR]
RewriteCond %{QUERY_STRING} sb_authorname(=|%20|%3D)
RewriteRule ^(.*)$ index.php [F,L]

__________________________________________________ _____________


Re: Anti-Attack [Idea-Question] ? - Tom1412 - 12.05.2012

This might work for a while but now you have shown hackers the code they will find ways to get around it.