Hey Guys,
I have just implemented a FeedBurner email subscription service at my blog so my visitors can enjoy receiving posts in their mailbox each day. I seem to have everything working properly, except I am encountering issues displaying content once a subscriber receives an email, due to the hotlink protection code I have in my .htaccess file.
I have researched this topic and found the following code, which works great for the Feedburner feed itself, but I’m still encountering problems with displaying the content in email messages, as the email clients are being blocked and the images are broken, with only the text displaying.
Here’s the code I am currently working with:
Hotlink Protection with Feedburner Access
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://bradbare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://bradbare.com/.$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.bradbare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.bradbare.com/.$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.feedburner.com/.$ [NC]
RewriteCond %{HTTP_REFERER} !^http://feeds.feedburner.com/example-feed$ [NC]
RewriteCond %{HTTP_REFERER} !^http://feeds.feedburner.com/example-feed-comments$ [NC]
RewriteRule ..(gif|jpg|jpeg|png|bmp|mp4|flv)$ - [F,NC,L]
I am hoping that someone will have a solution to this problem, because I would prefer to avoid removing the hotlink protection from my .htaccess file, to prevent bandwidth theft. Any ideas or suggestions would be greatly appreciated. Thanks.
Brad.