Welcome to WebmasterWorld Guest from 54.225.6.131

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Rewrite to stop linking.

     
11:29 pm on Apr 24, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 25, 2000
posts:541
votes: 0


I ran across this and thought I would get some opinions before trying it out:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !http://www.your_domain.com/
RewriteCond %{HTTP_REFERER} !http://your_domain.com/
RewriteRule /* [send_thieves_here.com...]

Will it really work? Are there other similar uses someone may be able to share?

11:34 pm on Apr 24, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:June 17, 2000
posts:2924
votes: 0


Yeah it will work. There is a similar construct to stop image pulls. I'll see if I could dig it up.
11:47 pm on Apr 24, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:June 17, 2000
posts:2924
votes: 0


Here are two ways:
SetEnvIfNoCase Referer "^http://my.apache.org/" local_ref=1
<FilesMatch ".(gif¦jpg)">
Order Allow,Deny
Allow from env=local_ref
</FilesMatch>
or
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]
RewriteRule .*\.(gif¦GIF¦jpg¦JPG)$ - [F]
4:21 pm on June 26, 2001 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38061
votes: 13


And please do those running with referrers off, or browsers that don't support referrers a favor by atleast saying something coherent on the error page.

I run with referers off most of the time.

8:55 pm on July 29, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 29, 2000
posts:12095
votes: 0


What happens with the linking to images from the Google cache?

I've got some graphics linked to from a couple of places at delphi.com and some personal homepage at members.domain.com/dir/membername

I just want to ban those whole domains from linking. What works for that?