Support » Fixing WordPress » How to TURN OFF RSS FEED

  • Hi
    this is what I FEEL
    Plugins that steals post from other blog throught RSS
    how can I turn off my RSS feed

    thank you for help

Viewing 11 replies - 1 through 11 (of 11 total)
  • Please help me

    follow whooami’s advice.




    theres absolutely nothing in that thread he linked to that has jack to do with turning off your RSS feed, desis.

    Ignore him.

    If you want to “turn off” your feeds, remove/delete the files that allow them to be seen — namely wp-rss.php, wp-rss2.php, and wp-atom.php.

    you’re right. sorry.
    ignore me. i just got some sleep. gotta stop posting when i’m tired.




    is that what that run of yours was, I thought your pc had been hijacked. :p

    😛 no excuses, though. i’ve been grumpy lately.

    i would be lying if i did not admit there is a disconnect between the linux do-it-yourself crowd (WP developers) and the average WP end-user.

    trying to put that negative energy into some helpful support videos, we’ll see what happens.

    If you want to “turn off” your feeds, remove/delete the files that allow them to be seen — namely wp-rss.php, wp-rss2.php, and wp-atom.php.

    Amazingly enough, that won’t actually work in the newer versions of WordPress (using pretty permalinks). Try it yourself, the /feed/whatever links will still work. Heck, even the direct name links (like to wp-rss2.php) will still work, even though the file itself is gone! The wonders of rewriting. 🙂

    You really need to delete these files from the wp-includes folder:

    That’ll do the trick, but it’ll probably just make it cause errors instead of giving a feed.

    One way that will work nicely is to do this in a plugin or theme’s functions.php file:

    remove_action('do_feed_rdf', 'do_feed_rdf', 10, 1);
    remove_action('do_feed_rss', 'do_feed_rss', 10, 1);
    remove_action('do_feed_rss2', 'do_feed_rss2', 10, 1);
    remove_action('do_feed_atom', 'do_feed_atom', 10, 1);

    Without those actions, the feeds cannot be called properly. That’s the safe way to do it.

    Modifying the functions.php file within the theme seems like a great idea. Can you kindly elaborate a bit more on how to add that code you suggested for us novices? Many thanks.

    I think disabling RSS is important because my blog is a private blog which I don’t want indexed by Google, but yet even though I did not submit my site Google, Google seems to have indexed the RSS feed already. Not good!



    comment out the following in your theme header

    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    also do what otto42 said



    I had a similar issue. I actually just wanted to redirect my feed to another one of my blogs. I simply created a folder /feed and put a 301 redirect into the folder pointing it where I wanted it to go. This worked for me. After I erased all of the above mentioned files I still had a feed.



    Any patch that suggests removing or deleting files is nice, but at each upgrade you will have to do it again and that is life.

    perhaps the developers would like to put in a function to turn off and on rss feeds in the same manner that they have done for xmlrpc?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to TURN OFF RSS FEED’ is closed to new replies.