crxchaos

msg:372027 | 4:56 pm on Sep 1, 2003 (gmt 0) |
Hi smirkl, I set my site up to block image linking when I realised some forum junkie was using four in his sig! Took me a fair while to get it working correctly but here it is: ------------------------------------------- RewriteEngine on RewriteCond %{HTTP_REFERER}!^$ [NC] RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain.co.uk.*$ [NC] RewriteRule \.(gif¦jpg¦png)$ [mydomain.co.uk...] [R,L] ------------------------------------------- Hope that helps
|
netguy

msg:372028 | 5:21 pm on Sep 1, 2003 (gmt 0) |
I just ran into something early this morning I hadn't noticed before. There was (another) forum whose member added an image that was a 200px square stating "This is a Stolen Image." Obviously, the image was still draining bandwidth, but it certainly got the point across: Don't Steal My Images! [and made the member look like an idiot]. Apparently any image located at a different address is swapped with the alternate image. Interesting trick.
|
crxchaos

msg:372029 | 5:30 pm on Sep 1, 2003 (gmt 0) |
And if you right click >> properties on that image, Netguy, it will still show the path to the original image the bandwidth theif linked to. It must really confuse amature web users! For my site I just made up a quick banner ad with my url and some graphics to gain a little free exposure in return for the bandwidth taken. Fair trade IMHO.
|
Mark_A

msg:372030 | 5:35 pm on Sep 1, 2003 (gmt 0) |
be wary be very wary .. I post on some photography forums and someone else who also does found some people stealing his images .. He pointed his camera down a toilet and took an image of what he found there. Then he used this code to serve that image whenever anyone off his domain requested images from his server .. When I saw them in the forum where I post .. (where he had posted his own images) I wrote .. w-t-f are you doing .. Ooops came the embarrased reply I forgot about my own postings of images .. better change that immediately :-) You can selectively redirect I am pretty sure so either only offenders image requests are changed .. or .. you permit yourself to post your images on particular domains .. Anyhow his linked image was not nice .. Hope it amuses :-)
|
jdMorgan

msg:372031 | 6:44 pm on Sep 1, 2003 (gmt 0) |
smirkl, Fixing up your code:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com [NC] RewriteRule \.(gif¦jpg)$ - [NC,F]
Note that the "¦" character is modified by posting on this forum. You will need to use the solid vertical pipe character from your keyboard - usually Shift \ on U.S. keyboards. Also, spaces preceding "!" are deleted by this forum; type two spaces when posting if you want one to show. Jim
|
smirkl

msg:372032 | 2:13 pm on Sep 2, 2003 (gmt 0) |
Thanks Jim! I think that the pipe code bit helped me figure out part of the problem (the main one was that the .htaccess code was actually blocking the image I wanted to change it with as well as the others, which was really stupid of me). Now to experiment with a .htaccess blank referrer to see if using just that will override the .htaccess the folder above ...
|
jdMorgan

msg:372033 | 3:46 pm on Sep 2, 2003 (gmt 0) |
smirkl, Just be aware that many legitimate users will have a blank referrer - that is why it's allowed in most of the code you see here. Any user who comes through an ISP or corporate proxy, or who uses Norton Internet Security may have a blank referrer. You'll have to decide whether losing them is worth the cost of blocking blank referrers.
|
|