Completely disable the FEEDS functionality
-
Hello everyone,
I’ve got a problem… I own a site which works as a CMS for a company, where every registered user can see only certain products (posts) via custom taxonomies.
I have managed to filter all the queries, block all bad URL content requests, everything… except of the FEEDS functionality.
I know I can disable the rss feeds on my site with something like this:
function fb_disable_feed() { wp_die(__('Feed not available. Please visit our <a href="'.get_bloginfo('url').'">Home Page</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 filter by categories or taxonomies or whatever I need, but if you add “/feed” to the end of the URL in any category page, you are gonna see every post that is inside that category, ignoring all the filtering and blocking efforts i have taken…
I really need a solution for this!!
Thank you all!
- The topic ‘Completely disable the FEEDS functionality’ is closed to new replies.