stuartduff
10/23/2013 - 10:55 PM

spammer protect

spammer protect

function check_referrer() {
    if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == "") {
        wp_die( __('Please enable referrers in your browser, or, if you\'re a spammer, bugger off!') );
    }
}
 
add_action('check_comment_flood', 'check_referrer');