Tech-Evangelist

Technical Articles, Musings and Opinions from Tech-Evangelist

  • Home
  • About
  • Guidelines
Previous article: Warner Brothers Offers DVD to Blu-ray Upgrade
Next article: How to Select a Good Hosting Company – Part 3

How to Disable RSS Feeds in WordPress

June 29, 2010 By Doogie - Copyright - All Rights Reserved

Many WordPress blog owners do not use RSS feeds themselves and are not aware that the RSS feeds in WordPress are enabled by default. While an RSS feed can be a good way to allow loyal followers to monitor new posts in your blog, an RSS feed can also be a double-edged sword.

Sometimes there are valid reasons for disabling an RSS feed. You may not want competitors to be aware of every new post that you make or you may not want unauthorized autoblogs or content thieves to easily steal your content. Whatever the reason, disabling the RSS feed for a WordPress site is fairly easy.

To view the RSS feed for a WordPress site, simply add the page name ‘feed’ to the right of the domain name as in http://www.tech-evangelist.com/feed/

The quick and easy route to disabling the RSS feeds is to find a free plugin that works. We recommend that you only use plugins found in the WordPress plugin directory. Read user’s comments and make sure that the author is keeping the plugin updated before you install it.

Disable RSS Plugins

If you want a more permanent solution that you will not have to periodically update, the RSS feed can be disabled by adding the following to the functions.php file found in your WordPress theme.

function fb_disable_feed() {
  wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
}
add_action('do_feed', 'fb_disable_feed', 1);
add_action('do_feed_rdf', 'fb_disable_feed', 1);
add_action('do_feed_rss', 'fb_disable_feed', 1);
add_action('do_feed_rss2', 'fb_disable_feed', 1);
add_action('do_feed_atom', 'fb_disable_feed', 1);

disabling full text RSS feedIf you are concerned about content theft but do want to keep the RSS feed enabled, we recommend that you only display summary excerpts in your feed. By default, WordPress displays the full text of your posts, which makes it very easy for someone to steal your content and automatically publish it on their site. Disabling the full text is easy. Just go to Settings > Reading and make sure that the Summary radio button is checked and save the settings.

Disabling of the RSS feeds should be an option in the WordPress administration area and is a feature that has been requested for quite some time. At the time of this writing, WordPress 3.0 does not yet offer this feature, so if you need to disable the RSS feeds for your WordPress site, follow the simple instructions found above and chose the method that works best for you.

Filed Under: WordPress Tutorials

Categories

  • Affiliate Marketing
  • CSS Tutorials
  • FileZilla Tutorials
  • Home Theater
  • Internet Marketing
  • Internet Technology
  • Kindle Tips
  • MySQL Tutorials
  • Online Auction Tips
  • Paint Shop Pro Tutorials
  • PHP Tutorials
  • Tech News
  • Thunderbird Tutorials
  • Video Production
  • Web Site Development
  • WordPress Tutorials
Content and images are copyrighted by Tech-Evangelist.com and others

Copyright © 2023 Tech-Evangelist.com - All Rights Reserved
Posted code samples are free to use. Do not reproduce or republish articles or content on another web site.

Privacy Policy : Terms of Use