Forum Moderators: open
Anyone has any experience with this?
If you implement your hot-link blocking correctly, then you won't have problems. You should allow for (accept) blank referrers and referrers from Google and all other search engines and translation services that you want to be able to display your graphics. This is easily done with RewriteCond exclusions to the hotlinking RewriteRule.
Jim
this is a nice helpful link, as well:
[pc-netgroup.com ]
Here's a full example [webmasterworld.com], including exceptions to allow well-know caches and translators.
HTH,
Jim
RewriteEngine OnRewriteCond %{HTTP_REFERER}!^http://www.yourdomain.com:80 [NC]
RewriteCond %{HTTP_REFERER}!^http://yourdomain.com:80 [NC]
RewriteCond %{HTTP_REFERER}!^http://www.yourdomain.com [NC]
RewriteCond %{HTTP_REFERER}!^http://yourdomain.com [NC]
RewriteRule /* http://www.yourdomain.com/ [R,L]
You might want to take a look at post #3 in the link I cited. It offers a more compact and more comprehensive set of RewriteConds which you may find useful. Also, note that over-specifying your own domain (for example, by including a specific port number) may cause problems for you and for those who copy the code from this thread.
I would also recommend using an internal redirect, as opposed to the 302 temporary redirect you have specified.
HTH,
Jim