I'm trying to fend off spammers in my hosting contact form and I have this idea to help stop it.
In these emails they are sending the form with keywords in it like for example: $badwords.
And I'm trying to make a code for it to search what they wrote and send and if it finds one of the $badwords that it will die();.
What I have is:
Code:
$badwords = array(array('sex', 'porn', 'unknown', 'Unkown', 'geocities', 'tripod', 'http://'));
if(in_array(array('sex', 'porn', 'unknown', 'Unkown', 'geocities', 'tripod', 'http://'), $badwords));
How can I hook it up to search the $message for $badwords?