Blog Post RSS ?

Blogs » Open Source » Securing an RSS Feed
 

Securing an RSS Feed

by Blane Warrene

While Kevin has pointed out some important issues in regards to Greasemonkey - I found this new concept for securing an RSS feed an invaluable tip.

Joe Gregorio wanted a way to syndicate content for himself and appears to be onto a method. With some tweaking perhaps this could also be explored as a way to distribute paid content to a restricted audience…?

This post has 5 responses so far

  1. Very interesting, I figured that it would eventually happen. Paid RSS feeds were a sure-thing once it goes commercial.

     
  2. Very timely blog - just yesterday i spent a couple hours searching on google for a way to create a password protect my RSS feed. If you have your username / passwords in MySQL, i *THINK* (haven’t full tested this yet) you can just use the PHP variable:
    $_SERVER[’PHP_AUTH_USER’];
    Using the header function i think you can make this work:

    if (!isset($_SERVER[’PHP_AUTH_USER’])) {
    //prompt for username / password
    } else {
    //check PW with MySQL, if successful spit out the RSS feed.
    }
    Hope that helps!

     
  3. $_SERVER[’PHP_AUTH_USER’] is used for htaccess authentication. Do RSS readers support that in the first place?

     
  4. Pretty cool. Couldn’t you use an easier way by just using a get method of username and password retrieval on the url you were going to parse?

     
  5. Yes, most RSS readers support Basic HTTP Auth, which when used with SSL makes for a secure feed. I thought Bloglines did, but there was some issue with their requiring you to put you username:password directly in the feed URL, which is obviously a Bad Thing. Anyway, Basic Auth + SSL (so passwords aren’t sent in the clear) is the way to go.

    Cheers,
    charlie

    http://spanningpartners.com

     

Sponsored Links

Leave a response

You are not logged in, log in with your SitePoint Forum username and password.

-OR- Post Anonymously

* Make sure any code samples are escaped (i.e. ‘<b>’ becomes ‘&lt;b&gt;’).

If not logged in, your comments will be placed in a moderation queue. This means your comment may not appear until one of our moderators approves it.

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.