how to restrict rss feed to one ip or person only?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roly
    Confirmed User
    • Aug 2002
    • 1844

    #1

    how to restrict rss feed to one ip or person only?

    hi

    on one of my wordpress blogs i need to restrict the rss feed to one ip address only, anyone got any idea how i can do this?

    changing location/name of feed? or htaccess or something?

    any help appreciated, thanks in advance
  • mortenb
    Confirmed User
    • Jul 2004
    • 2203

    #2
    put this in your htaccess

    <Files rssfilename.xml>
    Order deny,allow
    Deny from all
    Allow from xxx.xxx.xxx.xxx
    </Files>

    where filename.xml is the name of your feed and xxx.xxx.xxx.xxx is your IP

    Comment

    • roly
      Confirmed User
      • Aug 2002
      • 1844

      #3
      Originally posted by mortenb
      put this in your htaccess

      <Files rssfilename.xml>
      Order deny,allow
      Deny from all
      Allow from xxx.xxx.xxx.xxx
      </Files>

      where filename.xml is the name of your feed and xxx.xxx.xxx.xxx is your IP

      that's great, thanks very much

      will that work when using permalinks?

      Comment

      Working...