Closed Thread Icon

Topic awaiting preservation: Denying ALL Linking From Specific Domain (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12615" title="Pages that link to Topic awaiting preservation: Denying ALL Linking From Specific Domain (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Denying ALL Linking From Specific Domain <span class="small">(Page 1 of 1)</span>\

 
Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 02-15-2003 18:46

Okay, I've got a domain from which I want to disallow all linking. Not just to my images, but to everything. I won't say which and I won't say why. Well, maybe if you beg.

Here's what I tried, recommended by several Web sites on the subject:

code:
<Limit GET POST>
order allow,deny
referer allow from all
referer deny from [url=http://www.domain.com]www.domain.com[/url]
</Limit>



When I use this, however, I get a 500 error when trying to access my site at all, not just from the specified domain.

I do use the following to redirect image links to a specific image:

<BLOCKQUOTE><FONT face="Verdana, Arial">code:</font><HR><pre>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?bigwaste.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?texastwisted.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?ozoneasylum.com.*$ [NC]
RewriteRule \.(gif

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 02-15-2003 23:07

Try something like this

ErrorDocument 403 http://www.onlinesexaddict.org/
order mutual-failure
order deny,allow
SetEnvIf Referer "^http://.*example.com" local_ref=1
deny from env=local_ref


Just drop that in a nice little .htaccess file. (You may want to switch your 403 error in this example but it's a nice little way to go



.:[ Never resist a perfect moment ]:.

Kriek
Maniac (V) Inmate

From: Florida
Insane since: Jul 2001

posted posted 03-05-2003 04:36

Mike that is excellent! I never would have thought of the SetEnvIf directive =)

__________________

Kriek says '[SYSTEMWIDE_MESSAGE] PHP Meetup'
What we do is never understood; only praised and blamed

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 03-07-2003 00:10

Woo! Thanks, bit, that works perfectly!

I left off the ErrorDocument 403, though. I'd rather they just get a vanilla server error so they won't really understand what's happening.


« BackwardsOnwards »

Show Forum Drop Down Menu