Answer the question
In order to leave comments, you need to log in
How to check if an element has a specific parent?
Good afternoon, tell me, please. There is this static markup:
<div>
<a href="1.png">
<img src="1.png">
</a>
<a href="2.png">
<img src="2.png">
</a>
<img src="3.png">
</div>
Answer the question
In order to leave comments, you need to log in
Given that you have saved it to the database, and not executed, there is already some kind of protection there.
And if on business, then use prepared statements and PDO.
If I were a doctor of technical sciences, I would recommend you a permanent indefinite ip ban for these script-kids, from nerves, so to speak =)
Catching them with the words SELECT, UPDATE or INSERT in the incoming data is not difficult.
I agree with the previous guys - if the connector is self-written, then you need to screen the data included in the request. But, IMHO, to escape not words, but symbols for sql: semicolon, single and double quotes and something else - because I had it for a long time, and it's easy to google.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question