Bear in mind that these solutions will also prevent legit users from sending links via the forms. You could have a validation function that counts "http" instances in the message and limits it to a certain number. Something like this code:
$linkCount = substr_count($content,'http:'); // count links in content
if ($linkCount > $maxLinks) {
return false;
}
Another approach would be to institute some spam proofing features. The people who are sending the links are almost certainly doing it with a spam-bot and could likely be stopped with spam proofing options without preventing legitimate links from getting through.
Thanks guys for your comments,
What spam proofing options would work for me then? The eform is currently configured to write the info to a database, email the form filling person a confirmation email, send an email to HQ of the business and forwards the form filling person to a page where they can check that what they’ve submitted is correct (they can then click back and correct the details if incorrect). I would want something that was easy enough to implement without breaking the existing functions. It took many, many hours to get it works correctly and I can’t risk breaking it.
I also don’t want something too complicated as sometimes people ’don’t read’ and will give up.
Is there a simple captcha that might work for this? or is this easily bypassed by the spammers.
....or how about a message (similar to the missing email address validation message that pops up) that says "Sorry, HTML code noted in the xxxxx field, please remove and re submit" ? Just thinking ...
Thanks again, in advance
Quote from: SammyR at Feb 04, 2009, 04:41 PM
Done it. Using the verification image captcha!
&vericode=`1` parameter to the snippet call eForm will replace the [+verimageurl+]
Let’s see how this works out.
Thanks again.
Some spambots can read and respond to Captcha images now, so if you’re still getting spam, you may want to integrate the "http" counter I mentioned above. I’m not an eForm expert, but I’m sure someone here can tell you how to use that as a custom validator in eForm.