Forum Moderators: phranque
RewriteCond %{HTTP_REFERER} ^http://.*hotlinker\.com/ [NC]
RewriteRule .* /images/noway.gif [L,R]
All that does, however, is display nice red X's on the offending website. I would like for my no remote linking graphic to show up. Advice?
Thanks!
[edited by: lynnith at 6:46 am (utc) on Sep. 11, 2003]
A few things:
1. Welcome to Webmaster World [webmasterworld.com].
2. You could have picked a more generic domain name to pick on.
3. Do you have this line in your .htaccess file? It's usually at or near the beginning:
RewriteEngine on
4. Your site's logs may give you more details on what you're doing wrong.
5. You may not really need the R attribute on your RewriteRule line, because the file is on your server.
You must have an image named "noway.gif" and it must be in subdirectory /images for the code to work as posted.
Also, this code was intended to be placed in the .htaccess file of a subdirectory containing only image files.
A safer "generic" version of the Rule might be:
RewriteRule \.(gif¦jpe?g)$ /noway.gif [L]
Do not use the [R] flag unless you have to. The client software can choose to ignore the rewrite if you use [R].
Jim