{"id":746,"date":"2018-10-14T12:39:42","date_gmt":"2018-10-14T07:09:42","guid":{"rendered":"https:\/\/awpguide.com\/?p=746"},"modified":"2018-12-12T10:08:59","modified_gmt":"2018-12-12T04:38:59","slug":"how-to-disable-rss-feeds-in-wordpress","status":"publish","type":"post","link":"https:\/\/awpguide.com\/wp-guides\/how-to-disable-rss-feeds-in-wordpress\/","title":{"rendered":"How To Disable RSS Feeds In WordPress"},"content":{"rendered":"
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\/<\/em>.<\/p>\n 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.<\/p>\n There are two methods available.<\/p>\n Both are simple and will work without getting any error. We will explain both below. Choose one which you prefer.<\/p>\n You need to install the\u00a0Disable Feeds<\/a> plugin.<\/p>\n <\/p>\n After installing the plugin, activate it.<\/p>\n <\/p>\n 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.<\/p>\n <\/p>\n So when someone tries to access your feed, they will see a page not\u00a0found.<\/p>\n <\/p>\n If you don’t want to use a plugin, this method is for you. Simply copy the below code.<\/p>\n Add the code on your theme’s functions file. Make sure that you are using a WordPress child theme<\/a>. Update the functions file.<\/p>\n <\/p>\n Check your RSS feed from the front end. It will be disabled.<\/p>\n <\/p>\n Now, let’s look at how we can disable the RSS feed using the Perfmatters plugin.<\/p>\n Perfmatters<\/a> 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.<\/p>\n <\/p>\n Simply enable the option and update the plugin settings. That’s how it’s done!<\/p>\n 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.<\/p>\n 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<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" Do you really want to disable RSS feeds in WordPress? Here’s why. Some folks are creating auto blogs and fetching … <\/p>\nHow To\u00a0Disable RSS Feeds In WordPress<\/h4>\n
\n
Plugin Method<\/h4>\n
Coding Method<\/h4>\n
function awpg_disable_feed() {\r\nwp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage<\/a>!') );\r\n}\r\n\r\nadd_action('do_feed', 'awpg_disable_feed', 1);\r\nadd_action('do_feed_rdf', 'awpg_disable_feed', 1);\r\nadd_action('do_feed_rss', 'awpg_disable_feed', 1);\r\nadd_action('do_feed_rss2', 'awpg_disable_feed', 1);\r\nadd_action('do_feed_atom', 'awpg_disable_feed', 1);\r\nadd_action('do_feed_rss2_comments', 'awpg_disable_feed', 1);\r\nadd_action('do_feed_atom_comments', 'awpg_disable_feed', 1); <\/pre>\n
Using Perfmatters Plugin<\/h4>\n
Troubleshooting<\/h4>\n