Support » Fixing WordPress » Password Protect Feeds Only

  • Ok folks, here’s a weird one! We’re trying to block all access to our various feeds for all except This is to ensure that we get accurate subscriber counts.

    I’ve experimented with .htaccess, but believe that mod_rewrite is messing with my attempts to limit access to anything ending in /feed.

    Does anyone have any idea how to achieve this?


Viewing 3 replies - 1 through 3 (of 3 total)
  • whooami



    well, Im not going to show you how to password protect feeds, and I dont even agree with what you are doing – but I dont read your site, so I guess I dont care.

    I will give you some code and let you run with it..

    RewriteCond %{HTTP_USER_AGENT} FeedBurner
    RewriteRule ^(.*)feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
    RewriteCond %{HTTP_USER_AGENT} FeedBurner
    RewriteRule ^(.*)(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
    RewriteCond %{HTTP_USER_AGENT} !FeedBurner
    RewriteRule ^(.*)feed/?([_0-9a-z-]+)?/?$ [R,L]

    The above, if placed before the rules that wordpress uses will redirect anyone and everyone that doesn’t have the feedburner UA over to feedburner.

    You can obviously adjust the rewrite condition:

    RewriteCond %{HTTP_USER_AGENT} FeedBurner

    to something else, check the referer maybe.. and if not coming from feedburner, send them to a hardcoded XML file that explains what you want them to do.

    Good luck!

    Thanks whooami. I happen to agree with you, but I’ve been over ruled on this one…

    With the rapid explosion of splogs and content thieves, it makes perfect sense for a blogger to want to offer:

    1. an unprotected summary-only feed, and
    2. a password-protected full-text feed for paying subscribers and authorized syndicators

    Instead of bashing the messenger, I suggest that folks pressure WordPress and the other blog hosting services to take serious and concerted action against sploggers and thieves.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Password Protect Feeds Only’ is closed to new replies.