[Htaccess ] sql injection prevent by htacces 11-25-2012, 07:57 AM
#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
you can add custom string also
Eg:
RewriteCond %{QUERY_STRING} \order
RewriteRule . - [F]
Shared it , coz seem useful
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 Smile](https://sinister.ly/images/smilies/set/smile.png)
![[Image: Wfxdx.png]](http://i.imgur.com/Wfxdx.png)