Welcome to WebmasterWorld Guest from 54.196.144.100

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Rewrite to stop linking.

     

BoneHeadicus

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

10+ Year Member



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?

littleman

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

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



Yeah it will work. There is a similar construct to stop image pulls. I'll see if I could dig it up.

littleman

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

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



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]

Brett_Tabke

4:21 pm on Jun 26, 2001 (gmt 0)

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



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.

Marcia

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

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



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?