How can I stop Spam Questions?

I am receiving spam questions that are published directly to my blog with out going into the Pending Queue first.
I am already using the Stop Spammer Registrations Plugin but it's not working.
Any ideas?
I would be happy to take the spam if they would just go to the Pending queue instead of publishing directly to the live site.
Lee Dworshak

  • Ash
    • WordPress Hacker

    Hello @Lee

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    We are planning to add a captach in the plugin though. Meantime would you please try the following:

    add_action('wp_footer', 'set_captcha');
      function set_captcha() {
    	if(is_qa_page($type = 'ask') || is_qa_page( $type = 'edit') || is_qa_page( $type = 'single'))
    		<script type="text/javascript">
    			var string = new Array('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten');
    			var rand1 = Math.floor((Math.random()*10)+1) - 1,
    			    rand2 = Math.floor((Math.random()*100)+1),
    			    html = '';
    			html += '<table cellpadding="5" cellspacing="5">';
    				html += '<tr>';
    					html += '<td>'+string[rand1]+'</td>';
    					html += '<td width="10" align="center">+</td>';
    					html += '<td>'+rand2+'</td>';
    					html += '<td width="10" align="center">=</td>';
    					html += '<td><input type="text" id="res" placeholder="???" />';
    				html += '</tr>';
    			html += '</table><br><br>';
    					if($('#res').val() == (rand1+rand2+1))
    						return true;
    					alert('Please give the correct math!');
    					return false;

    You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name 'mu-plugins'. If there is no folder in that name, then create a folder, name it 'mu-plugins', create a file inside that, give any name you like and paste the code in there. You don't need to activate that plugin. Mu-plugins means must use plugins, so it will be activated automatically always. If you add it in mu-plugins then start with <?php

    Let me know if it works for you.

    Please let me know if you find this is helpful, or if you have any further questions.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.