Forum Moderators: phranque
Signed a concerned father and webmaster
[edited by: oilman at 5:28 pm (utc) on Feb. 17, 2004]
walrus, you can block referrers from undesirable sites through mod_rewrite (as mentioned, see the Apache Forum) however, you cannot stop websites from placing links to you. Frankly, I wouldn't worry about it since it may continue whether you like it or not. I don't feel it damages your reputation at all. You are probably the only 'non-undesirable' aware of it anyway ;)
If the site is in fact breaking the law you could complain to their ISP or take it to the police. Otherwise there's nothing else you can do, other than not linking to them from WebmasterWorld.
RewriteEngine On
RewriteCond %{HTTP_REFERER} (DOMAIN1¦DOMAIN2) [NC]
# Uncomment (remove the #) from one of the following RewriteRules
# 1 - Send unwanted requests/referals to a custom 403 page
# 2 - Cause unwanted requests to "fail"
# RewriteRule!^error/403\.php$ - [F]
# RewriteRule .* - [F]
There is a third option to send them back to the referring site; check the Apache forum on doing that (might be RewriteRule .* [DOMAIN1.TLD...] [F])
The other option is to use the "mapping" rule (don't ask me for help, I couldn't get it to work so I used the HTTP_REFERER)