This question already has an answer here:
- How can I prevent SQL injection in PHP? 26 answers
On my site im using friendlyURL by .htaccess. but site receiving SQL Injection queries. how can i protect my site from sql injection by htaccess?
This question already has an answer here:
On my site im using friendlyURL by .htaccess. but site receiving SQL Injection queries. how can i protect my site from sql injection by htaccess? |
||||
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
You can't protect index.php from sql-injection using .htaccess. To protect your site you have to rewrite your code. That's the only way. |
|||
|
Deny from all
to.htaccess
then tidy up the code inindex.php
! – Quassnoi Apr 4 at 7:22