How to Disable RSS WordPress [2022 guide]

Disable RSS WordPress

Do you want to save the site from unnecessary load? A great way is to disable WordPress RSS.

What is RSS (Feed) and why is it needed?

This technology uses the XML format. Needed to describe news feeds and announcements. The information in the feed can be presented to the site visitor in a form convenient for him. An example of an RCC feed is a news subscription form. Subscribers will be aware if a new article has appeared on the blog or on the information portal.

This technology is enabled by default in WordPress. It can be accessed at

This link will list the latest posts.

RSS has a big drawback. If the site has a news feed, then this opens the way for third-party aggregator programs. They will constantly check your site for new posts. This will create an additional load. Also, many sites simply do not need this feed. For example, business cards and portfolios.

How to delete the RSS feed in WP?

Clearfy Pro Plugin

If you have this extension installed, just open Clearfy Pro, go to the Advanced tab and activate the Disable RSS Feeds option.

Plugin Disable Feeds

Another way is with the help of the VI-add-on. After installing and activating Disable Feeds, open Settings > Reading and go to the Disable Feeds Plugin block.

Also see: How to Paste Link to WordPress Source

Choose one of the options:

  • Redirect feed requests to corresponding HTML content – ​​when you click on the post link on the Feed page, a redirect to the main post page on the site is triggered;
  • Issue a Page Not Found (404) error for feed requests – 404 error when opening a link in an RCC feed.

Manually, with the addition of your own code

In this method, you need to edit your active theme’s functions.php file.

To remove the RSS feed, at the very end of the file, add the lines

function wpschool_disable_feed() {
wp_redirect( get_option( 'siteurl' ) );
add_action( 'do_feed', 'wpschool_disable_feed', 1 );
add_action( 'do_feed_rdf', 'wpschool_disable_feed', 1 );
add_action( 'do_feed_rss', 'wpschool_disable_feed', 1 );
add_action( 'do_feed_rss2', 'wpschool_disable_feed', 1 );
add_action( 'do_feed_atom', 'wpschool_disable_feed', 1 );
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'rsd_link' );

Leave a comment

Your email address will not be published. Required fields are marked *