Advertisement
imranmodel32

protect from sql injection

Nov 10th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # protect from sql injection
  2. Options +FollowSymLinks
  3. RewriteEngine On
  4. RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
  5. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  6. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  7. RewriteRule ^(.*)$ index.php [F,L]
  8.  
  9. add the code to .htaccess file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement