hotlinking prevention
am 26.07.2007 04:41:38 von Faux_Pseudo
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-fullVie w.php
Re: hotlinking prevention
am 26.07.2007 07:44:54 von Paul Furman
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
Re: hotlinking prevention
am 27.07.2007 00:28:14 von Faux_Pseudo
_.-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-fullVie w.php
Re: hotlinking prevention
am 27.07.2007 21:39:38 von Paul Furman
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
Re: hotlinking prevention
am 28.07.2007 03:17:00 von Faux_Pseudo
_.-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-fullVie w.php
Re: hotlinking prevention
am 28.07.2007 03:59:35 von Faux_Pseudo
_.-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-fullVie w.php