I am continuously receiving spam from contact us page.
In all spam there is no proper E-Mail, the E-Mail address comes across like this: Amsterdam
I have applied javascript validation on the contact us form so there should be no chance to pass invalid email address.
Is a hacker posting data directly to my php file?
As my form action HTMLFORMresponseFeedback.php to this file.
I have heard we can post data via curl to any phpfile.
What security I need to apply to disable this approach?
Will this condition work?
if($_SERVER['HTTP_REFRER']=='http://abc.com/contact_us') {
} else {
// redirect
};