Spammers are looking for exploitable email forms to send spam emails. They use the form handler script as a ‘relay’. What they do is to submit the form with manipulated form values. To secure our form from such attacks, we need to validate the submitted form data.
All the values that go in the ‘headers‘ parameter should be checked to see whether it contains
or
. The hackers insert these characters and add their own code to fool the function.
Here is the code:
Comments 0