Support » Plugin: Contact Form 7 » Custom IP Spam catching module

  • 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’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 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

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi


    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

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom IP Spam catching module’ is closed to new replies.