Forum Moderators: phranque

Message Too Old, No Replies

Htaccess to control FeedBurner

         

robertsdoug

5:30 pm on Apr 10, 2007 (gmt 0)

10+ Year Member



Hello, I have many users subscribed to the rss feed of my php blog. FeedBurner checks my rss feed and makes it better and more usable, yet people are stillk subscribed to the old regular feed (that feedburner checks). In HTACCESS, I want to allow only feedburner to access my feed, and all others to access the feedburner feed. Please help me with the HTACCESS code to do this. I will soon post when I find out the feedburner user agent.Thanks

gabriel01

10:52 pm on Apr 10, 2007 (gmt 0)

10+ Year Member



You'd do it like this:

BrowserMatchNoCase [i]Feedburner's_UA[/i] is_feedburner

<Files [i]rss feed_file_name[/i]>
Order Allow,Deny
Allow from env=is_feedburner
Deny from all
</Files>

Feedburner's_UA is a regex. is_feedburner is the environment variable that it set. The rest of the code denies access unless that variable is set.

I didn't try it, but I think it should work.

robertsdoug

1:43 pm on Apr 15, 2007 (gmt 0)

10+ Year Member



I dont want to deny from all, I want to redirect all but feedburner. Here us feedburners user agent-

FeedBurner/1.0 (http://www.FeedBurner.com)

jdMorgan

3:55 pm on Apr 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try searching WebmasterWorld for the many posts on anti-hotlinking. Although this is not exactly what you want, you can modify the code to suit your needs. In the spirit of our forum charter [webmasterworld.com], please post your own best-effort code, and we'll try to help out.

Jim

robertsdoug

4:11 pm on Apr 15, 2007 (gmt 0)

10+ Year Member



Ok, here is what Ive come up with-

RewriteEngine On
RewriteBase /
Allow from %{HTTP_user_agent} ^FeedBurner/1.0 (http://www.FeedBurner.com)
Deny from all
RewriteRule ^$ index.php