SearchSearch   

hotlinking prevention

 
   Webmaster Forums (Home) -> Apache RSS
Next:  Why Can't I Get Apache to Post?  
Author Message
Faux_Pseudo

External


Since: Aug 03, 2005
Posts: 10



(Msg. 1) Posted: Thu Jul 26, 2007 2:41 am
Post subject: hotlinking prevention
Archived from groups: alt>apache>configuration (more info?)

I have the following in my .htaccess
------------
RewriteEngine On
RewriteCond %{HTTP_REFERER} http.*\.myspace\.com [NC]
RewriteRule .*\.(jpg|gif|bmp|png)$ http://domain.com/hotlink.jpe [L]
------------

As expected it stops people from hotlinking my pics to their intro
page on myspace.
But it is also doing it everywere else. How to fix that?
Also it isn't displaying the hotlink.jpe I have set up. Where did I
error?

--
=()==()==()==()==()- http://fauxascii.com
\ \ \ \ \ \ ASCII artist
:F_P:-O- -O- -O- -O- -O- -O- -O- Get your ASCII Art T-Shirt:
http://www.keystroketshirts.com/ascii/dream-in-ascii-fullView.php
Back to top
Paul Furman

External


Since: Jan 04, 2007
Posts: 100



(Msg. 2) Posted: Thu Jul 26, 2007 5:44 am
Post subject: Re: hotlinking prevention
Archived from groups: per prev. post (more info?)

Faux_Pseudo wrote:
> I have the following in my .htaccess
> ------------
> RewriteEngine On
> RewriteCond %{HTTP_REFERER} http.*\.myspace\.com [NC]
> RewriteRule .*\.(jpg|gif|bmp|png)$ http://domain.com/hotlink.jpe [L]
> ------------
>
> As expected it stops people from hotlinking my pics to their intro
> page on myspace.
> But it is also doing it everywere else. How to fix that?
> Also it isn't displaying the hotlink.jpe I have set up. Where did I
> error?

With hotlinking at least the link goes back to your site, otherwise
they'd be stealing the image so I figure it's not that bad. You can see
if any images are hot linked & watermark them... they still register in
search engines on your domain, one way of checking is to search google
in the format: image search [site:mydomain.com] & see if any show up
under other domains.

--
Paul Furman Photography
http://www.edgehill.net/1
Bay Natives Nursery
http://www.baynatives.com
Back to top
Faux_Pseudo

External


Since: Aug 03, 2005
Posts: 10



(Msg. 3) Posted: Thu Jul 26, 2007 10:28 pm
Post subject: Re: hotlinking prevention
Archived from groups: per prev. post (more info?)

_.-In alt.apache.configuration, Paul Furman wrote the following -._
> Faux_Pseudo wrote:
>> I have the following in my .htaccess
>> RewriteEngine On
>> RewriteCond %{HTTP_REFERER} http.*\.myspace\.com [NC]
>> RewriteRule .*\.(jpg|gif|bmp|png)$ http://domain.com/hotlink.jpe [L]
>>
>> As expected it stops people from hotlinking my pics to their intro
>> page on myspace.
>> But it is also doing it everywere else. How to fix that?
>> Also it isn't displaying the hotlink.jpe I have set up. Where did I
>> error?
>
> With hotlinking at least the link goes back to your site, otherwise
> they'd be stealing the image so I figure it's not that bad. You can see
> if any images are hot linked & watermark them... they still register in
> search engines on your domain, one way of checking is to search google
> in the format: image search [site:mydomain.com] & see if any show up
> under other domains.

Maybe I wasn't clear on something. I know that things are being
hotlinked. I was able, with the code above, to prevent all hotlinking
but that wasn't the goal. The goal was to prevent just myspace people
from hotlinking.

The code above should:
1) preven only myspace referers from hotlinking (instead it blocks
everyone)
2) Cause referers from myspace to display hotlink.jpe (ubstead it
doesn't display anything)


--
=()==()==()==()==()- http://fauxascii.com
\ \ \ \ \ \ ASCII artist
:F_P:-O- -O- -O- -O- -O- -O- -O- Get your ASCII Art T-Shirt:
http://www.keystroketshirts.com/ascii/dream-in-ascii-fullView.php
Back to top
Paul Furman

External


Since: Jan 04, 2007
Posts: 100



(Msg. 4) Posted: Fri Jul 27, 2007 7:39 pm
Post subject: Re: hotlinking prevention
Archived from groups: per prev. post (more info?)

Faux_Pseudo wrote:

> Paul Furman wrote
>
>>Faux_Pseudo wrote:
>>
>>>I have the following in my .htaccess
>>>RewriteEngine On
>>>RewriteCond %{HTTP_REFERER} http.*\.myspace\.com [NC]
>>>RewriteRule .*\.(jpg|gif|bmp|png)$ http://domain.com/hotlink.jpe [L]
>>>
>>>As expected it stops people from hotlinking my pics to their intro
>>>page on myspace.
>>>But it is also doing it everywere else. How to fix that?
>>>Also it isn't displaying the hotlink.jpe I have set up. Where did I
>>>error?
>>
>>With hotlinking at least the link goes back to your site, otherwise
>>they'd be stealing the image so I figure it's not that bad. You can see
>>if any images are hot linked & watermark them... they still register in
>>search engines on your domain, one way of checking is to search google
>>in the format: image search [site:mydomain.com] & see if any show up
>>under other domains.
>
>
> Maybe I wasn't clear on something. I know that things are being
> hotlinked. I was able, with the code above, to prevent all hotlinking
> but that wasn't the goal. The goal was to prevent just myspace people
> from hotlinking.
>
> The code above should:
> 1) preven only myspace referers from hotlinking (instead it blocks
> everyone)
> 2) Cause referers from myspace to display hotlink.jpe (ubstead it
> doesn't display anything)

OK, well maybe some clue in this stuff I got somewhere to control bots
from certain domains:

RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
....etc
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]

I'm guessing that last line just shuts them down.

--
Paul Furman Photography
http://www.edgehill.net/1
Bay Natives Nursery
http://www.baynatives.com
Back to top
Faux_Pseudo

External


Since: Aug 03, 2005
Posts: 10



(Msg. 5) Posted: Sat Jul 28, 2007 1:17 am
Post subject: Re: hotlinking prevention
Archived from groups: per prev. post (more info?)

_.-In alt.apache.configuration, Paul Furman wrote the following -._
> OK, well maybe some clue in this stuff I got somewhere to control bots
> from certain domains:

I am getting the feeling that I am somehow stating the problem wrong
because no reply seems to be addressing my actual issues.

RewriteEngine On
RewriteCond %{HTTP_REFERER} http.*\.myspace\.com [NC]
RewriteRule .*\.(jpg|gif|bmp|png)$ http://domain.com/hotlink.jpe [L]


The code above should:
1) Prevent only requests with a referer from myspace.com from
hotlinking, The code above is instead blocking all sites.
Why is it doing this?
2) When someone does hotlink an image from myspace.com they should
see hotlink.jpe instead of the image they were looking for. Instead
they see no image. Why isn't it displaying hotlink.jpe?

--
=()==()==()==()==()- http://fauxascii.com
\ \ \ \ \ \ ASCII artist
:F_P:-O- -O- -O- -O- -O- -O- -O- Get your ASCII Art T-Shirt:
http://www.keystroketshirts.com/ascii/dream-in-ascii-fullView.php
Back to top
Faux_Pseudo

External


Since: Aug 03, 2005
Posts: 10



(Msg. 6) Posted: Sat Jul 28, 2007 1:59 am
Post subject: Re: hotlinking prevention
Archived from groups: per prev. post (more info?)

_.-In alt.apache.configuration, Faux_Pseudo wrote the following -._
>
> I have the following in my .htaccess
> RewriteEngine On
> RewriteCond %{HTTP_REFERER} http.*\.myspace\.com [NC]
> RewriteRule .*\.(jpg|gif|bmp|png)$ http://domain.com/hotlink.jpe [L]
>
> As expected it stops people from hotlinking my pics to their intro
> page on myspace.
> But it is also doing it everywere else. How to fix that?
> Also it isn't displaying the hotlink.jpe I have set up. Where did I
> error?

Problem solved.
Apparently this is what I get for letting cpanel write my .htaccess
file.
I had a redirect in there from ages ago that got split into two lines
so everything below that point was fubared. Hand fixed it and
uploaded the new .htaccss and all works well now.

--
=()==()==()==()==()- http://fauxascii.com
\ \ \ \ \ \ ASCII artist
:F_P:-O- -O- -O- -O- -O- -O- -O- Get your ASCII Art T-Shirt:
http://www.keystroketshirts.com/ascii/dream-in-ascii-fullView.php
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> Apache
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum