• Hello,

    My site is receiving many junk email (thousands) with low traffic. I am using WordPress with Lifestyle Child Theme. I am beginner in WordPress but I suppose that the origin of the junk email is RSS. I want to remove RSS feeds because I prefer that the users, visit the site periodically. How can I remove all RSS from my site?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove RSS’ is closed to new replies.