HighDots Forums  

OT: hotlink protection?

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss OT: hotlink protection? in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
greenvelvet
 
Posts: n/a

Default OT: hotlink protection? - 10-06-2005 , 06:12 PM






hi,

I posted a query about this on alt.html a couple days ago, but no one
responded. I realize it's OT here, but folks here have been so helpful in
the past I'm hoping there's someone who might know the answer. Thanks for
indulging me.

There's one website that repeatedly hotlinks to my images; one image alone
hass gotten 1351 hits from their website in the past 6 days. (Imagine what
that number will be by end of month.)

I'd like to block that site (but not all sites) from linking to my images.
Is there a way?

I did find this code online - the website it was on claimed it would help.
But it doesn't work; it also blocks some images from my own site! I found
some variations on this code on other sites & couldn't get them to work
either. What am I doing wrong? I'm so confused.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://(www\.)?badsite.com.*$ [NC,OR]
RewriteRule \.(gif|jpg)$ http://www.mywebsite.com/images/hotlink.gif [R,L]

Also, is there a way that it can return an error rather than a 404 or a
redirect to an alternate image?

thanks so much!

~velvet~



Reply With Quote
  #2  
Old   
Paul
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 06:23 PM






On Thu, 06 Oct 2005 22:12:47 GMT, "greenvelvet" <spam (AT) verizon (DOT) net>
wrote:

Quote:
hi,

I posted a query about this on alt.html a couple days ago, but no one
responded. I realize it's OT here, but folks here have been so helpful in
the past I'm hoping there's someone who might know the answer. Thanks for
indulging me.

There's one website that repeatedly hotlinks to my images; one image alone
hass gotten 1351 hits from their website in the past 6 days. (Imagine what
that number will be by end of month.)

I'd like to block that site (but not all sites) from linking to my images.
Is there a way?

I did find this code online - the website it was on claimed it would help.
But it doesn't work; it also blocks some images from my own site! I found
some variations on this code on other sites & couldn't get them to work
either. What am I doing wrong? I'm so confused.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://(www\.)?badsite.com.*$ [NC,OR]
RewriteRule \.(gif|jpg)$ http://www.mywebsite.com/images/hotlink.gif [R,L]

Also, is there a way that it can return an error rather than a 404 or a
redirect to an alternate image?

thanks so much!

~velvet~

Hi ya
I had the same problem as you did. I got in touch with my hosting
company and they have successfully stopped people hotlinking to me.

They installed LeechBlocker.dll onto my site and that did the trick.

hth
plh
Paul

--
Wank a man off, and he will enjoy himself for a day. Teach a man how to wank, and he'll be a wanker for the rest of his life.


http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


Reply With Quote
  #3  
Old   
greenvelvet
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 06:38 PM



"Paul" <webmaster (AT) houstoncrafts (DOT) com> wrote

Quote:
On Thu, 06 Oct 2005 22:12:47 GMT, "greenvelvet" <spam (AT) verizon (DOT) net
wrote:

hi,

I posted a query about this on alt.html a couple days ago, but no one
responded. I realize it's OT here, but folks here have been so helpful in
the past I'm hoping there's someone who might know the answer. Thanks for
indulging me.

There's one website that repeatedly hotlinks to my images; one image alone
hass gotten 1351 hits from their website in the past 6 days. (Imagine what
that number will be by end of month.)

I'd like to block that site (but not all sites) from linking to my images.
Is there a way?

I did find this code online - the website it was on claimed it would
help.
But it doesn't work; it also blocks some images from my own site! I found
some variations on this code on other sites & couldn't get them to work
either. What am I doing wrong? I'm so confused.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://(www\.)?badsite.com.*$ [NC,OR]
RewriteRule \.(gif|jpg)$ http://www.mywebsite.com/images/hotlink.gif [R,L]

Also, is there a way that it can return an error rather than a 404 or a
redirect to an alternate image?

thanks so much!

~velvet~


Hi ya
I had the same problem as you did. I got in touch with my hosting
company and they have successfully stopped people hotlinking to me.

They installed LeechBlocker.dll onto my site and that did the trick.

Thanks Paul. Does Leechblocker selectively block websites? There are some
sites that I'm OK with linking to images on my site. It is just one or two
that I'd like to block.

~ velvet ~

Quote:
hth
plh
Paul

--



Reply With Quote
  #4  
Old   
Paul
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 06:49 PM



On Thu, 06 Oct 2005 22:38:01 GMT, "greenvelvet" <spam (AT) verizon (DOT) net>
wrote:

Quote:
"Paul" <webmaster (AT) houstoncrafts (DOT) com> wrote in message
news:1r8bk19o47iuf0v8eje64vutibmlarm62g (AT) 4ax (DOT) com...
On Thu, 06 Oct 2005 22:12:47 GMT, "greenvelvet" <spam (AT) verizon (DOT) net
wrote:

hi,

I posted a query about this on alt.html a couple days ago, but no one
responded. I realize it's OT here, but folks here have been so helpful in
the past I'm hoping there's someone who might know the answer. Thanks for
indulging me.

There's one website that repeatedly hotlinks to my images; one image alone
hass gotten 1351 hits from their website in the past 6 days. (Imagine what
that number will be by end of month.)

I'd like to block that site (but not all sites) from linking to my images.
Is there a way?

I did find this code online - the website it was on claimed it would
help.
But it doesn't work; it also blocks some images from my own site! I found
some variations on this code on other sites & couldn't get them to work
either. What am I doing wrong? I'm so confused.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://(www\.)?badsite.com.*$ [NC,OR]
RewriteRule \.(gif|jpg)$ http://www.mywebsite.com/images/hotlink.gif [R,L]

Also, is there a way that it can return an error rather than a 404 or a
redirect to an alternate image?

thanks so much!

~velvet~


Hi ya
I had the same problem as you did. I got in touch with my hosting
company and they have successfully stopped people hotlinking to me.

They installed LeechBlocker.dll onto my site and that did the trick.


Thanks Paul. Does Leechblocker selectively block websites? There are some
sites that I'm OK with linking to images on my site. It is just one or two
that I'd like to block.

~ velvet ~

hth
plh
Paul
Hi Velvet

What it does is to block the images from being linked to.
They can still link to the URL, but not directly to the image.
AFAIK you can set it up to block certain types of images. eg. gif /
jpg / tiff etc.

Or, (I think) you can just block some eg block jpgs but allow gifs.

hth
plh
Paul


--
Wank a man off, and he will enjoy himself for a day. Teach a man how to wank, and he'll be a wanker for the rest of his life.


http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


Reply With Quote
  #5  
Old   
Fritz M
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 06:52 PM



greenvelvet wrote:

Quote:
I did find this code online...

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://(www\.)?badsite.com.*$ [NC,OR]
RewriteRule \.(gif|jpg)$ http://www.mywebsite.com/images/hotlink.gif [R,L]

Also, is there a way that it can return an error rather than a 404 or a
redirect to an alternate image?
This is a rule that you put into .htaccess, which is a configuration
file for the Apache web server. If you're using IIS, this won't help
you. I know nothing at all about IIS configuration.

Which web server software are you using?

RFM



Reply With Quote
  #6  
Old   
greenvelvet
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 07:06 PM



"Fritz M" <nospam (AT) masoner (DOT) net> wrote

Quote:
greenvelvet wrote:

I did find this code online...

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://(www\.)?badsite.com.*$ [NC,OR]
RewriteRule \.(gif|jpg)$ http://www.mywebsite.com/images/hotlink.gif
[R,L]

Also, is there a way that it can return an error rather than a 404 or a
redirect to an alternate image?

This is a rule that you put into .htaccess, which is a configuration
file for the Apache web server. If you're using IIS, this won't help
you. I know nothing at all about IIS configuration.

Which web server software are you using?

RFM

Hi,

Sorry, I should have specified before -- it's indeed Apache (version
1.3.33).

The code did go into the .htaccess file. I tried variations of the code I
posted before, all found on web searches, but they either blocked images
from my own site (as well as those from others) or they didn't work at all.
To check, I tested between the site in question & another website I own.

(I regularly use .htaccess for 301 redirects, custom error pages, etc. and
that's very straightforward. But for issues such as this I must rely on code
found on the web, or the advice of others as I don't really understand what
the "Rewrite" code means or why it is written that way. )

any suggestions would be most welcome!

many thanks!
velvet.




Reply With Quote
  #7  
Old   
Fritz M
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 07:26 PM



greenvelvet wrote:

Quote:
The code did go into the .htaccess file. I tried variations of the code I
posted before, all found on web searches, but they either blocked images
from my own site (as well as those from others) or they didn't work at all.
I redirect image requests that don't come from my own website. Hence,
the rule looks like this:

RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]

Where "example.com" is my own website. This would replace the line in
your example that matches with "badsite." Everything else looks fine to
me.

RFM



Reply With Quote
  #8  
Old   
Paul
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 07:29 PM



On 6 Oct 2005 16:26:48 -0700, "Fritz M" <nospam (AT) masoner (DOT) net> wrote:

Quote:
greenvelvet wrote:

The code did go into the .htaccess file. I tried variations of the code I
posted before, all found on web searches, but they either blocked images
from my own site (as well as those from others) or they didn't work at all.

I redirect image requests that don't come from my own website. Hence,
the rule looks like this:

RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]

Where "example.com" is my own website. This would replace the line in
your example that matches with "badsite." Everything else looks fine to
me.

RFM
Thing is, that only stops *that* site. What happens when another, and
another, and another start doing it ?

plh
Paul

--
This is the sig that I have added. The one below is added after my message has left my PC.


http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


Reply With Quote
  #9  
Old   
greenvelvet
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 07:42 PM



"Fritz M" <nospam (AT) masoner (DOT) net> wrote

Quote:
greenvelvet wrote:

The code did go into the .htaccess file. I tried variations of the code I
posted before, all found on web searches, but they either blocked images
from my own site (as well as those from others) or they didn't work at
all.

I redirect image requests that don't come from my own website. Hence,
the rule looks like this:

RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]

Where "example.com" is my own website. This would replace the line in
your example that matches with "badsite." Everything else looks fine to
me.

RFM

Thanks so much. But how do I stop only one site from hotlinking? I don't
want to block all sites from linking to my images. Just the one that's
causing trouble.

- velvet





Reply With Quote
  #10  
Old   
greenvelvet
 
Posts: n/a

Default Re: OT: hotlink protection? - 10-06-2005 , 07:44 PM



"Paul" <webmaster (AT) houstoncrafts (DOT) com> wrote

Quote:
On 6 Oct 2005 16:26:48 -0700, "Fritz M" <nospam (AT) masoner (DOT) net> wrote:

greenvelvet wrote:

The code did go into the .htaccess file. I tried variations of the code
I
posted before, all found on web searches, but they either blocked images
from my own site (as well as those from others) or they didn't work at
all.

I redirect image requests that don't come from my own website. Hence,
the rule looks like this:

RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]

Where "example.com" is my own website. This would replace the line in
your example that matches with "badsite." Everything else looks fine to
me.

RFM

Thing is, that only stops *that* site. What happens when another, and
another, and another start doing it ?

plh
Paul

I don't care if some other sites occasionally hotlink to one of my images.
I'm cool with it. But when a fairly large image is being accessed over 1000
times in less than a week, that's problematic. I just want a way to block
particular website (or websites) that are using lots of bandwidth.

Still hoping for a way to block only that one site ~~~

~ velvet ~




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.