How can I stop Spam Questions?

I am receiving spam questions that are published directly to my blog AtHomeSense.com 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
AtHomeSense.com

  • 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'))
    		if(!is_user_logged_in()){
    		?>
    		<script type="text/javascript">
    		jQuery(function($){
    			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>';
    
    			$('.qa-edit-submit')
    				.before(html)
    				.click(function(e){
    					if($('#res').val() == (rand1+rand2+1))
    						return true;
    					alert('Please give the correct math!');
    					e.preventDefault();
    					return false;
    				});
    
    		});
    		</script>
    		<?php
    		}
      }

    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.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.