Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A site I maintain has been having a lot of trouble lately with spam submissions through the webforms on the site. And most of the available anti-spam modules don't seem to work for webform submissions - they just deal with nodes and comments. Someone came out with a patch for the next-to-most-recent version of Mollom that is supposed to make it handle webform submissions, but I installed the patch and it didn't seem to have any effect.
Is there any way to incorporate some kind of spam filtering into a webform to block this kind of submission?
Comments
Comment #1
pbeakley CreditAttribution: pbeakley commented+1
I just realized that Mollom doesn't actually work with Webform. Imagine my surprise!
Comment #2
matteoraggi CreditAttribution: matteoraggi commentedAkismet is not working so much on it and I can't suggest spammers, plus to delete any spammer I have to reload all page to confirm.
Comment #3
rolfmeijer CreditAttribution: rolfmeijer commentedHow about the spamicide module? Anyone having experience with that?
Comment #4
spidersilk CreditAttribution: spidersilk commentedHadn't come across Spamicide before... That might be worth trying.
What I ended up resorting to for now was the CAPTCHA module, though it's not an ideal solution as it inconveniences legitimate users and can cause accessibility problems since some people have difficulty reading CAPTCHAs. It did stop the spam, but I'm still keeping an eye out for less annoying alternatives.
The one issue I can think of with the way Spamicide is supposed to work is that it's heavily CSS reliant - it uses CSS to hide a field and then discards the submission if that field is filled in. So again there could be accessibility issues, with people using older browsers, or visually impaired people using screen readers which might not be paying attention to CSS styling (I don't have enough experience with those to know whether they'd skip reading out a field that was hidden with CSS or not).
But anyway, CAPTCHA seems to be doing the job for now. Hopefully the better anti-spam modules like Mollom and Akismet will eventually be adapted to handle webform submissions.
Comment #5
quicksketchWith so many other spam solutions it would be inappropriate for Webform to try to handle such a situation. As far as I know Captcha module is the only module that supports Webform currently. The mollom issue is over at #259488: Webform support.