RewriteCond %{HTTP_REFERER} not working .htaccess
Posted by: jmorty732
Posted on: 2006-11-30 20:32:00
Hi All,
I am hoping someone can help me, as I am totally stumped. I wrote support and they said this was a "programming" issue and couldn't help me.
Anyway, I am trying to block referral visits from ebay to my site.
I placed the following in my .htaccess file (per the article in the wiki)
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(cgi.)?ebay.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(cgi.)?ebay.co.uk [NC]
RewriteRule .* - [F]
And when I go to ebay and click on the link pointing to my site, it comes right up. (And yes, the referring link is cgi.ebay.com (or .co.uk).
All of the rewrites in my htaccess file are working correctly, so I have absolutely no idea what the issue is. I have cleared my cache and tried it from a completely different computer, yet my site still comes up when clicking on the referring link.
Any ideas/help/advice is greatly appreciated.
Thanks
Morty