Put this is your functions file
function disable_all_feeds() {
wp_die( __('Sorry, our content is not available by RSS. Please head over to <a href="'. get_bloginfo('url') .'">our site</a>') );
}
add_action('do_feed', 'disable_all_feeds', 1);
add_action('do_feed_rdf', 'disable_all_feeds', 1);
add_action('do_feed_rss', 'disable_all_feeds', 1);
add_action('do_feed_rss2', 'disable_all_feeds', 1);
add_action('do_feed_atom', 'disable_all_feeds', 1);
Thread Starter
crzcas
(@crzcas)
Hello Justin,
Thank you for your answer. I have added the function to disable all feeds in the functions.php file.
In the last 4 days I have received more than 400 emails with low traffic. Now, I will observe if the junk emails decrease in the next 3 days.
Thanks again.
Regards
Thread Starter
crzcas
(@crzcas)
Hello again,
I have disabled all RSS, but now there are even more comments spam (near thousand in 2 days) in my WordPress website with low traffic. Also, I have configured in Settings > Discussion to disable pingbacks and trackbacks but it will be for the new posts. The problem is the same with the old posts (many comments spam)
How can I disable pings or other variable for each old post to decrease the comments spam of these posts?
Thanks in advance.