Forum Moderators: phranque

Message Too Old, No Replies

Blocking remote linking of images

but not SE 'cache' view and email clients

         

dcrombie

1:21 pm on Dec 20, 2003 (gmt 0)



I'm using .htaccess to stop people remote-sourcing .jpgs from one of our sites. Now I'm seeing in the server logs that the 'View Cached Version' option in Yahoo and Google shows broken images, as do various email/webmail clients (I assume people have been sent a page from the site).

Is there any graceful way to tell the difference (I'm thinking not) or would it require a specific white/black-list of referrers?

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www.)?somedomain.com [NC]
RewriteRule .*\.jpg$ - [F]

jdMorgan

4:53 pm on Dec 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> would it require a specific white/black-list of referrers?

Yes. Several previous discussions contain various member's lists of common ones: site search [google.com]

Jim