tags:

views:

1060

answers:

3

Hi 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

+4  A: 

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.

ceejayoz
hook_menu_alter, and 'page callback' or 'access callback' for each RSS path set to FALSE.
Grayside
+3  A: 

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.

Henrik Opel
I prefer this solution, as a secured but useful middle ground.
Grayside
+1  A: 

There's a Drupal module now, that does that: http://drupal.org/project/rss_permissions

phpdiva
Patched something together with .htaccess in the end (as I remember) but was a poor fix - thank you posting this, module solution will be much better.
luke