Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


[Htaccess ] sql injection prevent by htacces filter_list
Author
Message
[Htaccess ] sql injection prevent by htacces #1
Creditz to : phpBuGz

htacces checking each server url word if its match =' tick then
it wil redirect.
you can add block ip ,show 404 error .
what ever u want to do

very useful if dealing with huge sql records website

Code:
RewriteEngine on
RewriteCond %{QUERY_STRING} [+,*/']
RewriteRule . - [F]

RewriteCond %{QUERY_STRING} \%27
RewriteRule . - [F]

RewriteCond %{QUERY_STRING} \%5C
RewriteRule . - [F]

you can add custom string also


Eg:
RewriteCond %{QUERY_STRING} \order
RewriteRule . - [F]


Shared it , coz seem useful Smile
[Image: Wfxdx.png]

Reply

RE: [Htaccess ] sql injection prevent by htacces #2
Ooh, thanks for the share! Smile

Reply

RE: [Htaccess ] sql injection prevent by htacces #3
Ooh, thanks for the share!

Reply

RE: [Htaccess ] sql injection prevent by htacces #4
(11-25-2012, 10:23 PM)josefsat Wrote: Ooh, thanks for the share!

if you spam in my thread one more time , :headbash:
[Image: Wfxdx.png]

Reply







Users browsing this thread: 1 Guest(s)