Contact Form 7
Custom IP Spam catching module (3 posts)

  1. vahost
    Posted 3 years ago #

    I would like to add a spam catching module. I'm aware of the CAPTCHA option, but I don't want to use it because many users find such "tests" to be confusing and frustrating.

    I have a simple PHP script I developed that interacts with data from spam-ip.com's list of known IP addresses for spammers and quietly ignores any form posts sent from a known spammer's IP. I'd like to integrate it if possible, perhaps via a separate plug-in, but I'm not sure how to tie it into your form processing functionality.

    My script simply detects the user's IP address, checks that IP against a regularly updated list from spam-ip.com that I maintain on another web site, then if it doesn't find a match in the updated list, it integrates the IP address into the mail message and turns that IP into a link to another web page I maintain on another site. This other page gives me exclusive access (based on my IP address) so I can use a special form I've set up there to report a new spammer that got through.

    My system is about 95% effective in blocking spammers, and it gets more effective over time as I report more spammers to spam-ip.com.

    I believe there is a similar plugin for comment forms called Spam Free WordPress, although that author's plugin is considerably more comprehensive than mine. If there was a way to link that plugin to your plugin, it would be the ultimate solution.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 3 years ago #

    Sounds interesting. Some of spam-filtering extension modules for Contact Form 7 utilize wpcf7_spam filter. Looking into the Akismet module (contact-form-7/modules/akismet.php) would be helpful.

    By the way, have you tried Akismet? I think it can work much smarter than simple IP address pattern matching.

    Spam Filtering with Akismet | Contact Form 7

  3. vahost
    Posted 3 years ago #

    I gave up on Akismet awhile ago because of its inconsistency. It is too easily beaten by the spammers.

    Thanks for the hint about wpcf7_spam. I'll look into it.

    By the way, I really do suggest you look at Todd Lahman's Spam Free WordPress filter, which I mentioned in my earlier post. It's amazingly good. He claims a 100% spam catching rate. I can't prove that rate is accurate, but I've never had a spam comment get through his plugin, and I run it on several sites.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic