Password Protect Feeds Only (4 posts)

  1. flashlight
    Posted 9 years ago #

    Ok folks, here's a weird one! We're trying to block all access to our various feeds for all except feedburner.com. 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?


  2. whooami
    Posted 9 years ago #

    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-]+)?/?$ http://feeds.feedburner.com/village-idiot [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!

  3. flashlight
    Posted 9 years ago #

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

  4. mikeairhart
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic