I have a script that use $_POST variable to store to the database.
There are some users who is trying to cheat the system by making their own post form method or using curl to send post variable and value to the server.
How can I prevent this attack?
Thank You
Prevention isn't possible (POST being safe is an oversimplification myth). You have to validate the incoming data with various methods:
$_POST->text->in_array("field", "abc,def,xyz")
for exampleIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With