Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal - Remove RSS

Tags:

rss

drupal

I have just set up a new Drupal site, community based. there are some forums which contain 'sensitive' info, yet incredibly, Drupal auto generates RSS feeds for taxonomy terms, which is what the forum is based on.

There's no built in way to turn it off! Or a module to control what feeds are generated... this is a big problem.

Using Drupal 6.14. I dont want to hack core but if anyone knows a way to deal with this... that would be great

Thanks

like image 744
luke Avatar asked Dec 04 '22 14:12

luke


2 Answers

You could try a hook_menu call in a custom module that takes over the sensitive URLs and serves a blank page or error message. Turning them off should be in core, and a Google search shows a lot of grumpy people over the issue.

like image 187
ceejayoz Avatar answered Dec 06 '22 04:12

ceejayoz


If you are using the Views module, you could enable the taxonomy_term override it offers and edit the two feed displays it provides, adjusting them to work only for certain vocabularies, or even force a 404 for any request.

Note that this would just be a variation of ceejayoz' (correct) suggestion, as the view would 'take over' the feed URLs and serve something differently for them.

like image 40
Henrik Opel Avatar answered Dec 06 '22 04:12

Henrik Opel