Not sure if you're interested in this, but I installed your module today and upon seeing it work the first few times, I was interested in what comments it was actually blocking (more as reassurance that it was spam) so I added the actual comment text to the Watchdog log. Attached is my patch if you're curious.

CommentFileSizeAuthor
spamicide.module.patch835 byteshansamurai

Comments

lipcpro’s picture

Status: Active » Postponed

That certainly is an interesting idea, however that would only work on the comment form and not on any of the other forms that it supports out of the box, nor would it work on new forms created by other modules. Spamicide would have to somehow know about the variable in every form or print the whole form into watchdog, and quite a few custom forms and webforms can be quite lengthy. Not a practical proposition IMHO.

tumblingmug’s picture

This is another version of the watchdog message I actually use:

      watchdog('spamicide', 
        'Trap on %form_id contains: "%spam". Discarding post.',
        array('%form_id' => $form_id, '%spam' => $form_state['values'][$spamicide_field]), 
        WATCHDOG_NOTICE, 
        l('Whois', 'http://www.ip-adress.com/whois/' . ip_address(), array('attributes' => array('target' => '_blank')))
      );

Notice, that this works for both custom and default spamicide field names. Also this variant utilizes watchdog's automatic ip address logging using it's own column and clears redundant information from the description field.

An additional idea could be to implement a variable_get() which replaces the hardcoded whois lookup url. Then you would be able to configure even a local site lookup by the whois module or any other external service you like. It's also nice to see on a map where the spam comes from :)

hansamurai’s picture

Yeah, I just saw my first non-comment block and it dawned on me that people use this for things other than commenting. This is a really excellent module, though. I set the honeypot comment field to "email" (Drupal uses "mail") and that has worked exceptionally well.

Do you know how screen readers will process the field? I'm assuming a blind user would see it as a normal field and may trigger Spamicide? This isn't a concern for me or my site, just curious.

lipcpro’s picture

I think this is a good idea in general, however since it's supposed to add to any kind of form in Drupal, not just comments. I would have to come up with a way to store all of the submission, and not just the one field, that could be a very large amount of data to try to stuff in the watchdog logs.

lamp5’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)