The attached patch makes RSS feeds for subscribed contents optional.

Just uncheck a box in "admin > options > subscriptions" to get rid of that "feed rss" tab.

Comments

kimangroo’s picture

Is there a chance of getting a patch for the latest version of Subscriptions?! Or even better getting it included in the subscriptions module?

The automatic RSS feed stops me from using the subscriptions module, because it seems to include absolutely every node from my site, including custom 404 pages, login pages etc!

suit4’s picture

StatusFileSize
new2.36 KB

a created a patch from the subscriptions-no-rss.patch for the current dev version.

hope it works and hope a added all features of the original patch.

flaviovs’s picture

Thanks suit4. I'll be testing your patch in my site.

I'm just wondering about how this whole RSS thing is supposed to work... If I add a subscriptions feed URL to a feed reader, how in earth does the module know which user it is to retrieve subscriptions for?

I mean, if user Foo add "his/her" http://www.example.com/subscriptions/feed feed URL to, say, Google Reader, how will the module know it has to show Foo's subscribed content?

Even if the feed URL contained the uid (e.g. http://www.example.com/subscriptions/<uid>/feed, wouldn't this be a big security flaw (anyone could see anyone else subscribed contents)?

Or maybe I simply didn't understand how the RSS thing are supposed to work?

Anyone using this feature to shed a light on these questions?

Sam Roy’s picture

Status: Needs review » Needs work

I'm having the same issue. I came up with a simple but *DIRTY* way of disabling it.

Insert this into the first lines of your index.php file.

Just change the path in the eregi function to fit your site.

Right after:

...
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
...

Paste the following:

// This code *disables* the RSS feed provided by the Subscriptions module.
if ( eregi('/subscriptions/feed', $_SERVER['REQUEST_URI']) ) {
drupal_access_denied();
}

Good luck.
Sam

tro-1’s picture

Status: Needs work » Fixed

It seems like this was fixed here.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.