Results tagged “spam”

Ending Web form abuse and spam

Lately, "form spam" has been the bane of my existence. Anyone who runs more than one or two Web sites has probably had the experience of dealing with what can amount to hundreds of junk messages a day coming through different types of Web-based contact forms. "Report a bug," "Contact the Web team," "Write a letter to the Editor," etc. -- they're all targets for malicious spam bots and their ilk.

Recently I decided to double my previous efforts to find some solutions to Web-based form abuse.

Many of the organizations that I'm working with rely on a number of different systems to deliver content to the Web, which makes it more challenging to find a one-size-fits-all solution. That said, they all use a LAMP stack and several of them are using the Drupal content-management system in some capacity, e.g., to provide some front-end interactivity, user management, etc. So, the real opportunity was to find something that either played nice with Drupal, or was built in PHP/Perl/Python so that it could be integrated with Drupal where necessary.

The biggest challenge was that I'd been using a Web-form processing script that I was pretty happy with until now; it made it possible to set up a number of rather complicated forms with relative ease and lots of processing flexibility (automated e-mail responses, etc.). The shortcomings were no form protection and the data wasn't stored in a database. So, the first options that I looked at were ways to simply improve the existing forms with a "captcha" or something similar. The short-list of options were:

And, last but not least, the rather socially-responsible reCaptcha -- a service that helps the folks at Archive.org to digitize books.

Looking at reCaptcha got me thinking about Drupal again. Since the release of Drupal 5, I hadn't done a good review of what "Web form" capabilities and options were available -- so I thought it might be a good idea to have a quick look there too. A scan of the Projects page revealed a number of potential options including:

Both of these only deal with Drupal's basic site-wide contact form ... so they weren't quite right for my needs. Next stop was the Feeback module (which is maintained by Khalid Baheyeldin of DrupalCampToronto fame), which was quite close to what I was after, but didn't have enough form customization flexibility and appeared to have an issue with captcha integration.

Last stop was Web form (my new favourite module!). It offers complete form flexibility, validation and post-processing rules, and a great form data management interface. I guess this module's been around for a while, but this was the first time I'd taken the time to install it and play around.

After a quick tip from Adam Ma'anit that lead me to the Form store module, I was able to create some test contact forms and attach math-based "captcha points" to them.

And, finally, to make it possible for these Drupal-powered contact forms to play nice with non-Drupal pages, Webform allowed me to drop in a hidden field with a "%server[HTTP_REFERER]" variable, which pretty much reproduced the behaviour of the old forms by grabbing the URL of the referring (non-Drupal) page.

Score one for the good guys. Next up: making Forward module's "Send this page to a friend" functionality play nice with non-Drupal pages.

Comments

2 Comments

im trying to add validation

im trying to add validation to a webform. hwo do I do this? can i type in javascript somewhere to do it? is there a module to do it?

Validation is part of most modules

Hi there,

Form field validation is included in most Drupal modules. Hope that helps a bit.

Phillip.

Leave a comment

TrackBack URL: http://www.phillipadsmith.com/trackback/1753

Open-source software for non-profits, and dealing with SPAM.

Good article quoting the usual suspects over at Charity Village:

Unless you work in IT, you probably don't give much thought to whether the software you use is licensed or open source, freeware or shareware; you just want it to work properly. But with the flexibility and affordability that open source and shareware programs can offer, some nonprofits are taking a closer look. Find out about the available software alternatives and whether they might be right for your organization in this week's cover story at: http://www.charityvillage.com/cv/news/cover.asp

(Not sure how long that link will work, so let me know if it's not working.)

Also fun to see that all those lessons on dealing with spam have finally paid off for Mark Greenspan. Mark was over for dinner on the weekend and couldn't stop talking about the Net Neutrality panel (lots of familiar names there) that he is helping to program at Next Media 2007.

Leave a comment

TrackBack URL: http://www.phillipadsmith.com/trackback/1748

Fighting comment spam with Drupal

Recently, I asked a colleague why I couldn't comment on their fancy, new, corporate blog and this was their response:

Yeah, it's pretty unfortunate at the moment, I've had to turn off commenting for unregistered users on the site, because we were getting spammed so heavily and even though I had the Spam filter on at full strength many were still getting through. I'd like to find a better solution, though, because right now you have to create an account to be able to post comments (which nobody will do, I'm sure). If you have any wisdom or suggestions from your Drupal experience on how to deal with such massive spamming issues, I'd love to glean some knowledge

At the risk of attracting a line-up of comment spammers determined to make me look bad, I offer the following recipe for fighting comment spam with Drupal (as I do on my Drupal-powered blog): * First, I use the Captcha module without the image captcha (instead, it uses a simple math question to confirm that the comment is from a human) * Then I add the Comment Mail module (to get notifications of new comments) * Next, I stir in the Comment Info (which allows people to check a "remember me" button) * Finally, add a quick dash of Spam Module v2 (just in case the occasional brute force attack on the math question slips through*)

This way, I don't require that people log-in, or create an account, to leave comments.

The results:

  • People actually comment (on occasion) because there are fewer hurdles to jump over
  • Increased security, because there are no "privileged" accounts on my system
  • No spam: ever. (Though, I'm hanging my ass out a bit with this posting!)
  • No need to pre-screen comments, as the only ones that get through are legit

There you go: a Drupal comment-spam fighting recipe fresh from your friends at Community Bandwidth. Go Drupal!

* Update: Laura Scott of Ping Vision reported on the last Drupal shops call that she was getting the occasional spam still using a similar recipe -- so, if you have an experience to share -- or, better yet, another recipe -- please post it here!

Comments

12 Comments

Disappointed with Wordpress

I've going to switch to Drupal because I've had it up to here with Wordpress. No matter what I did I couldnt stop the damn barrage of spam. Trackbacks, Akismet, Captcha code. Nothing. It completely runined my pr4 website. Im going to try Drupal now with the implementations that you mentioned. Hope it works out better this time. Thanks

Do you have any other modules enabled?

In addition to the Captcha module, I'm also running the Akismet module (was running the Spam module until recently). Never see "spam," unless it very well disguised, e.g., your comment got through and I'm not entirely sure it's not spam. ;-)

Manual "Spam"

What about manual spam?
Do You delete this comments in the backend, delete their URLs or aren't there any manual spam comments any more (because it's simply to much expense)?

Hey Robert,
I don't see much


Hey Robert,

I don't see much manual spam, and -- in fact -- any manual spam attempts I do see are often caught by Akismet too. Oddly enough, your comment was marked as spam -- so I guess the filter is quite aggressive.

Perhaps it wouldn't work on a busy site? However, for this site, it seems to do that trick and requires very little oversight.

And, yes, if I need to, I can manually publish or delete any of the comments that come in.

Cheers,

Phillip.

I just got spammed!

but it was my fault...I didn't install captcha and still need to get Akismet figured out. But my question is how do you get rid of the hundreds on unwanted comments given the spam module only looks at new comments? any thoughts. thanks for the helpful advice

How to get rid of old spam


But my question is how do you get rid of the hundreds on unwanted comments given the spam module only looks at new comments? any thoughts. thanks for the helpful advice

That's a great question. And I wish I could tell you that I had an answer!

My suggestion: roll up your sleeves and start deleting old spam. Then get Akismet and captcha in place and take a vacation. :-)

Good luck Stefan.

Phillip.

I've going to switch to

I've going to switch to Drupal because I've had it up to here with Wordpress. No matter what I did I couldnt stop the damn barrage of spam. Trackbacks, Akismet, Captcha code . Nothing. It completely runined my pr4 website. Im going to try Drupal now with the implementations that you mentioned. Hope it works out better this time. Thanks

I'm stopping SPAM in my Drupal site using shinobi methods

I've checked all SPAM control methods for Drupal and I'm not happy with them. They're complicated, resource intensive, unaccesible and many of them are annoying for most users.

There's a more simple way, Shinobi methods for those that master the art of silence. I've explained them all in my blog:

http://www.isegura.es/blog/stop-spam-your-site-being-invisible-honeytrap-drupal-comments-form

http://www.isegura.es/blog/stop-spam-your-site-being-slow-flood-control-method-drupal

More than 99% success at this time, but I'm always open to suggestions to improve this ratio even further.

drupal not stopping spam

We only allow registered users to comment on our blogs. They must complete a CAPTCHA and email verification at user registration and they must run through CAPTCHA at the comments and we're still seeing tons of spam.

Leave a comment

TrackBack URL: http://www.phillipadsmith.com/trackback/1716


1