GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how to restrict rss feed to one ip or person only? (https://gfy.com/showthread.php?t=804785)

roly 02-03-2008 06:42 AM

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 02-03-2008 06:52 AM

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

roly 02-03-2008 06:56 AM

Quote:

Originally Posted by mortenb (Post 13733930)
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 :thumbsup

will that work when using permalinks?


All times are GMT -7. The time now is 12:36 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123