Answer the question
In order to leave comments, you need to log in
How to protect the site from hacking on a GET request?
How to protect the site from hacking on a GET request?
Answer the question
In order to leave comments, you need to log in
$var_name = htmlspecialchars(trim(strip_tags(stripslashes($_POST['var_name']))));
$var_name = htmlspecialchars(trim(strip_tags(stripslashes($_GET['var_name']))));
Don't defend at all.
There are no "hacks" on a "GET request" in nature.
Everything that came from the user must be immediately run through the regular expression (filter) to determine the presence of "left" characters and that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question