Contact form spam #2
Posted in Contact form spam on March 3rd, 2006Of course 90% of our contact form spam stopped the moment we installed the following php function into our form to mail scripts. That at least will give you a good idea of the industries that do this sort of thing.
function checkspam($variable)
{
$poowords = array("casino",
"penis",
"gambling",
"poker",
"escort",
"pharmacy",
"generic drugs",
"cialis",
"viagra",
"bcc:",
"content-type:",
"to:",
"cc:"
);
$variable = strtolower($variable);
foreach ($poowords as $val1) {
if (strpos($variable, $val1) !== false) return "true";
}
}