Learn in this tutorial how to disable WordPress RSS feed without plugins.
By default, WordPress creates several RSS feeds:
I’m a big fan of this content syndication system and use it to follow quite a few websites. But I am also aware that there are people who prefer to disable this option to discourage copying content (although they will always be able to scrape the site).
In fact, I recently had a client that asked me just that. So I’m going to explain how to stop the RSS feed from being accessible without plugins.
Code to disable the WordPress RSS feed
Add the following code at the end of functions.php or in your functionality plugin:
Once this code snippet has been added, the RSS feed of the website will no longer be accessible.
Do you want to disable the WordPress RSS feed? Now you know how to do it with a little bit of code.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂