AWPGuide

Beginner's Guide For WordPress

  • Blog
    • Monetization
    • Reviews
    • Showcase
    • WordPress Guides
    • ScanWP
  • Start Here
  • Deals
  • Blueprint

Last Updated On December 12, 2018 By Christina

AWPGuide » WordPress Guides » How To Disable RSS Feeds In WordPress

How To Disable RSS Feeds In WordPress

How To Disable RSS Feeds In WordPress

Do you really want to disable RSS feeds in WordPress? Here’s why. Some folks are creating auto blogs and fetching contents from our blog through the RSS feed URL. By default, WordPress RSS feed URL will look like www.example.com/feed/.

Nobody likes redistributing our content without any notice or something. It will affect your website’s ranking, SEO and revenue. By disabling the RSS feed URL, you can prevent content theft. In this post, we are going to show you how can you disable RSS feeds in WordPress without getting any error.

How To Disable RSS Feeds In WordPress

There are two methods available.

  • Using the Disable Feeds.
  • Code
  • Perfmatters Plugin.

Both are simple and will work without getting any error. We will explain both below. Choose one which you prefer.

Plugin Method

You need to install the Disable Feeds plugin.

https://wordpress.org/plugins/disable-feeds/

After installing the plugin, activate it.

Disable RSS Feeds In WordPress

Under your WordPress reading settings, you can see the plugin settings. For disabling the feed, all you need to is, simply redirect all those feed requests to a 404 error page.

disabling RSS feeds using WordPress plugin

So when someone tries to access your feed, they will see a page not found.

feed URL not found error

Coding Method

If you don’t want to use a plugin, this method is for you. Simply copy the below code.

function awpg_disable_feed() {
wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
}

add_action('do_feed', 'awpg_disable_feed', 1);
add_action('do_feed_rdf', 'awpg_disable_feed', 1);
add_action('do_feed_rss', 'awpg_disable_feed', 1);
add_action('do_feed_rss2', 'awpg_disable_feed', 1);
add_action('do_feed_atom', 'awpg_disable_feed', 1);
add_action('do_feed_rss2_comments', 'awpg_disable_feed', 1);
add_action('do_feed_atom_comments', 'awpg_disable_feed', 1); 

Add the code on your theme’s functions file. Make sure that you are using a WordPress child theme. Update the functions file.

disabling RSS feed code

Check your RSS feed from the front end. It will be disabled.

rss feed disabled on wordpress

Now, let’s look at how we can disable the RSS feed using the Perfmatters plugin.

Using Perfmatters Plugin

Perfmatters is a premium WordPress optimization and hardening plugin. The plugin for several options for optimizing your blog and making it secure. In that list, you can see an option to disable RSS feeds.

perfmatters plugin rss feed settings

Simply enable the option and update the plugin settings. That’s how it’s done!

Troubleshooting

If you didn’t see that your RSS feed still showing contents, it’s a problem with caching. You can try accessing the feed URL on any private window or using a proxy site.

We hope you enjoyed the read and found it helpful. If you did, please consider sharing this post with your friends and fellow bloggers. For more related posts, you should check out our blog.

Full Disclosure This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

About Christina

Christina is the lead editor in AWPGuide.
She will mainly write about WordPress tutorials, product reviews, monetization tricks, and related stuff.
Christina is led by Sreehari.

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let us have a personal and meaningful conversation.

Learn WordPress Now!

Never miss our updates! We are adding fresh contents daily!
Join our newsletter and learn WordPress now!

The Best of AWPGuide

We have the best guides here! Some of them are below!

Beginner's Guides

  • 1
    Media.net Review (and RPM Optimization Guide)
  • 2
    Grammarly Review: Free Proofreading Tool
  • 3
    Why You Need To Build an Email List?
  • 4
    How To Start a Free Blog on CloudAccess.net
  • 5
    Aspire pro Documentation and Setup
  • 6
    WP Engine Affiliate Program Review
  • 7
    How To Add Coupon Section In WordPress

Theme Reviews

  • 1
    Jupiter X WordPress Theme Review
  • 2
    Newsmag WordPress Theme Review
50% DISCOUNT
AWPGuide
Social Warfare Coupon

Social Warfare Coupon: 40% Discount On All Plans!

One of the best social sharing plugins that we used! It's Social Warfare. In this post, we are going to share a Social Warfare coupon for free!
Get This Deal

ABOUT AWPGUIDE

Finally we have launched AWPGuide blog! At this time of writing, we know, there are so many blogs are providing blogging and money making tips and tricks.

We are not like them! In AWPGuide, we will cover WordPress, blogging, SEO, make money online guides and will teach you how to start, maintain and monetize a WordPress blog.

All these guides will be 100% free and always it will be. We are not running a typical membership website for making money. Also, AWPGuide is free from display advertising, pop-up ads and URL shortner!

For more, feel free to check out our about page.

SITE LINKS

About Us

Advertise Here!

Contact Us

Free Blog Setup

Terms of Service

Write For Us!

Privacy Policy

Deals

OptinMonster Coupon

MyThemeShop Coupon

WPForms Coupon

Bluehost Coupon

CSS Hero Coupon

Social Warfare Coupon

REVIEWS

Genesis Framework

WP Coupons

WP Review Pro

Slider Revolution

Newsmag

Jupiter X

MonsterInsights

© 2023 · AWPGuide LLC