Forum Moderators: phranque

Message Too Old, No Replies

Hotlink Protection Tutorial

         

isorg

3:02 pm on Oct 9, 2005 (gmt 0)

10+ Year Member



I have been implementing the Hotlink Protection Tutorial at [webmasterworld.com...] resulting in something like this in my .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER}!^http://(www\.)?yoursite\.com [NC]
RewriteRule \.(gif¦jpe?g)$ - [NC,F]

It works great, except that when I use PHP's "getimagesize" command in the script, the server is not allowed to access the image.

What RewriteCond do I add to ALLOW the server to access the files?

Many thanks in advance.

isorg

3:04 pm on Oct 9, 2005 (gmt 0)

10+ Year Member



Cancel that question!

I had missed out the "RewriteCond %{HTTP_REFERER} ."