TechSpot

How can I password protect RSS and XMl feed

By Agent474
Sep 8, 2010
Post New Reply
  1. I want to Monitor users who subscribe to my RSS Feeds.

    How can i use an authentication Process to block users from getting access.
     
  2. jobeard

    jobeard TS Ambassador Posts: 13,449   +324

    the normal RSS feed is
    • just a url
    • to a specially formated file
    To 'control' that access, you would need your users to 'login' before accessing it,
    and that breaks the RSS subscription data flow; ie any Pop3 email client can 'subscribe' to an RSS feed.

    To 'monitor' without control, place a fixed image in the feed, like the FAVICO.ico file reference. Now your server logs will contain an entry for each time it's served.

    Instead of the FAVICO.ico, which is served to every browser that accesses ANY content on the server, create your own gif in some other location,
    eg rss/rssaccessed.gif​
    and each 'hit' was from a RSS subscription.
     
  3. EDO219

    EDO219 TS Rookie Posts: 298

    Ah, clever.

    Then, just look through the IP's of individuals who have accessed your .gif file and block the IP of who ever you don't want viewing your RSS feed?
     
  4. jobeard

    jobeard TS Ambassador Posts: 13,449   +324

    hmmmmm; blocking IP addresses is unreliable and you can't be sure you've
    a) got the right guy(s)
    b) they didn't access it from elsewhere, say a hotspot.

    Again: monitoring is different that access control

    you might try a Public vs Private concept, where
    • /Public/rss/* is accessible via a link anywhere on your site and could be emailed as you see fit

    • /Private/rss/* has no links anywhere and the only access is when you tell someone how to find it

    but don't delude yourself - - - if JoeDoe knows of /Private, 10 minutes later, hist friends will too.
     


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.