WordPress.org

Ready to get started?Download WordPress

Forums

How to TURN OFF RSS FEED (12 posts)

  1. desis
    Member
    Posted 6 years ago #

    Hi
    With NEW BAD AND ILLEGAL PLUGINS
    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

  2. desis
    Member
    Posted 6 years ago #

    Please help me

  3. yogipress
    Member
    Posted 6 years ago #

  4. whooami
    Member
    Posted 6 years ago #

    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.

  5. yogipress
    Member
    Posted 6 years ago #

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

  6. whooami
    Member
    Posted 6 years ago #

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

  7. yogipress
    Member
    Posted 6 years ago #

    :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.

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    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:
    feed-atom-comments.php
    feed-atom.php
    feed-rdf.php
    feed-rss.php
    feed-rss2-comments.php
    feed-rss2.php

    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.

  9. marcbkk
    Member
    Posted 6 years ago #

    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!

  10. electronicghost
    Member
    Posted 6 years ago #

    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

  11. jcapshaw
    Member
    Posted 5 years ago #

    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.

  12. rawalex
    Member
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic