## WP No-bot Question plugin for WordPress

By admin | October 9, 2011

Most spam on your WordPress blog is caused by automated robots (spambots) which keep submitting to your comment form to inflate some shady website’s rank. Short of completely disabling or turning on blog moderation and wasting your time filtering through the mess, you can now use the new WP No-bot Question plugin developed by Compdigitec for WordPress - simply activate, set your question and answers and block all the spam bots! Best used in conjunction with other spam and server protection plugins such as NoSpamNX and Bad Behaviour. This plugin was inspired by the Anti-Bot Question Mod for phpBB, which is very effective against spambot user registration on phpBB.

Topics: PHP | 21 Comments »

### 21 Responses to “WP No-bot Question plugin for WordPress”

1. Matt Kizer Says:
May 10th, 2012 at 6:39 am

I am looking for something just like this that prevents registration, rather than appearing on the comments page. SABRE does that, but the questions cannot be customized. This plugin has a customizable question, but does not block bots from registering. I would love it if it would appear on the actual registration page.

2. bob Says:
May 17th, 2012 at 8:25 pm

@Matt Kizer:

Interesting idea, hope to see it being implemented some time soon…

June 11th, 2012 at 9:12 pm

@Matt Kizer, bob:

Feature has been added in v0.1.1.

4. WP No-Bot Question | Best Plugins - wordpress – widgets – plugin 2012 Says:
July 15th, 2012 at 11:41 am

[...] drop a comment if it works for you, if you found any bugs or if you have suggestions/ideas for this plugin – [...]

5. Dennis Says:
July 15th, 2012 at 11:31 pm

where is shortcode?

6. TheFreeWindows Says:
July 18th, 2012 at 4:16 pm

I see it works here, but on my site (where I’d like also to present it, since it is a freeware site) the plugin won’t show the question. It is activated, it can be configured, but it doesn’t show the quection in the comments form.

Kind regards,

George

July 18th, 2012 at 4:33 pm

@TheFreeWindows:

1) Did you enable it in the configuration? (“Enable WP No-bot Question”)

2) Does your theme use comment_form()? If not:

3) Ensure that it calls do_action(‘comment_form_after_fields’); before the textarea so that the filtering field can load.

8. TheFreeWindows Says:
July 23rd, 2012 at 5:08 am

ID); ?>

ID); ?>

I moved both functions above the textarea, but the problem was not solved.

George

9. TheFreeWindows Says:
July 23rd, 2012 at 5:10 am

In the previous message the code was truncated. I am copying it here without the php directives, in case this way will pass the filters

do_action(‘comment_form’, $post->ID); And this on comments.php: if(function_exists(“comment_id_fields”)) { comment_id_fields(); } do_action(‘comment_form’,$post->ID);

July 23rd, 2012 at 5:02 pm

@TheFreeWindows:

Yeah, you’re using an older theme. I think that you need to call:

do_action(‘comment_form_after_fields’);

(If you try the plugin with a new theme like the Twenty Eleven theme you will see that the plugin works as advertised; that’s why it’s marked as requiring 3.1 and above.)

11. TheFreeWindows Says:
July 24th, 2012 at 6:36 am

This simple change that you suggested (comment_form_after_fields) worked the miracle!

I will test the plugin some time before I present it, in order to see if bots are able to defeat it. The question I have is add 11 to 7 then divide by 2. I hope my visitors won’t be confused, I think it is easy enough.

George

12. TheFreeWindows Says:
July 24th, 2012 at 6:43 am

Let me also suggest a feature you may find useful. Since the fix for older themes is so simple, perhaps you could add an option at the Settings, where a user would be able to check a box and activate this legacy setting in order for the security question to work on older themes.

July 26th, 2012 at 2:07 pm

@TheFreeWindows:

Hmm, that kind of change requires a change in your theme code though. Maybe I should look into other ways I can hook in older themes…

14. Gene Says:
January 19th, 2013 at 7:13 pm

Great plugin, thanks!

Is there a shortcode (or lines of code) I could insert in a contact form which would use your anti-spam method?

Cheers,
Gene

15. Alex Says:
January 20th, 2013 at 4:58 am

Love it.

However it’s currently not possible to add questions containing commonly escaped characters, mainly ” (quotation mark). When saving the changes the question get’s truncated and only the escape character (\) is left.

Am using version 0.1.2. Is there any simple modification I could make to support this?

Thanks!

January 20th, 2013 at 4:34 pm

@Alex:

Good catch! Fixed in 0.1.3.

17. Gene Says:
January 21st, 2013 at 6:41 pm

Hi,

Thanks.

January 22nd, 2013 at 7:47 am

@Gene:

I don’t quite understand what you are asking for, since WP No-Bot Question hooks into the “comment_form_after_fields” action to display the question.

19. Hene Says:
January 22nd, 2013 at 4:31 pm

Your plugin also hooks into the registration form so, I was wondering if the same code could be inserted into a contact form (such as http://wordpress.org/extend/plugins/super-simple-contact-form/).

Also, it would be great if your anti-spam plugin could also hook into the “Lost password” form, thus making your plugin one of the best anti-spambot solution for WP.

Cheers,
Gene

20. baruni Says:
January 24th, 2013 at 11:56 am

Hi,

“Wp No-Bot Question Plugin” is great. You can use common questions in order to allow nearly everyone to registrate. But it also allows the admin to ensure that only “insiders” are able to sign in by using question that only an insider of an organisation is able to answer. So far so good.

But how can I use this great plugin in Buddypress. I have tried to use it in Buddypress. I saved some customized questions but they do not appear in the registration form.

Is there any possibility to make it compatible with buddypress?

Thanks!

21. Alex Says:
January 27th, 2013 at 6:31 pm

Comment #15 & #16:

Thanks! Just installed the update, works great!

Can I leave a donation somewhere?