Drupal - Remove RSS

I just created a new community-based Drupal site. There are some forums that contain “sensitive” information, but unbelievably, Drupal auto generates RSS feeds for the taxonomic conditions on which the forum is based.

There is no built-in way to disable it! Or a module to control which channels are generated ... this is a big problem.

Using Drupal 6.14. I don’t want to crack the kernel, but if someone knows a way to handle this ... that would be great

thanks

+4
source share
5 answers

Now there is a Drupal module that does this: Permissions for RSS . Here is an excerpt from his project page:

Set role-based permissions for the RSS blog, taxonomy, aggregator, and main site. This module does not disable RSS feeds: RSS feeds created through the Views module and others not listed here do not have associated permissions.

The RSS permission module allows you to disable some or all of the RSS feeds based on different user roles,

+3
source

You can try hook_menu in a custom module that uses sensitive URLs and serves as a blank page or error message. Disabling them should be at the core, and a Google search shows a lot of grumpy people on this issue.

+5
source

If you use the Views module, you can enable the taxonomy_term override that it offers and edit the two channels shown. provides their configuration to work only for certain dictionaries or even forcibly 404 for any request.

Please note that this will simply be a variation of the ceejayoz clause (correct), as the view will “grab” the feed URLs and do something different for them.

+4
source

You can expand the list of values ​​"parameters" in the form section in the system_rss_feeds_settings function in system.admin.inc - add "0" as a value in the array. Then the value 0 will be displayed as the value "Number of elements in each feed", thereby suppressing the generation of the RSS feed.

+1
source

This works in a custom module. It will delete the page, as well as the link in the HTML for the page, this is for D7. Make sure you flush your caches.

 function MYMODULE_menu_alter(&$items) { $items['rss.xml']['page callback'] = 'drupal_not_found'; } function MYMODULE_html_head_alter(&$head_elements) { foreach ($head_elements as $key => $v) { if (strstr($key, 'rss.xml')) { unset($head_elements[$key]); } } } 

code>

+1
source

All Articles