How To Disable RSS Feeds In Your WordPress Blog ?

Don’t want to allow RSS feeds in your WordPress site? there are many options available that allows you to disable RSS feeds.

WordPress blog RSS feed can be disabled either by using aplugin or by editing your function.php file which is located in your WordPress theme.

If you like using WordPress Hack then Open your active theme’s function.php file and add the following code, using this you can easily disallow RSS feeds in your WP blog:

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);


Or try using Disable RSS plugin, it contains the same function that is written above so if you don’t want to edit your theme’s function file the use install and activate Disable RSS plugin.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.