|
|
Joined: Jun 2006
Posts: 225
enthusiast
|
|
enthusiast
Joined: Jun 2006
Posts: 225 |
Anyone know of a way that works to stop images being leached from galleries?
Thanks
|
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 2
Veteran
|
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 2 |
.htaccess is your friend there if you want to prevent deeplinking those images from other sites. Exampje 1 .htaccess that will deliver broken images to anyone deeplinking to it: RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?themepark.nl/.*$ [NC]
RewriteRule \.*$ - [F,NC]v2 replaces any deeplinked image with our "don't steal the bandwith" image.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*themepark.nl/.*$ [NC]
RewriteRule \.(gif|GIF|jpg|JPG)$ dontstealourbandwith.gif [L]
Last edited by blaaskaak; 09/26/2007 12:42 PM.
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
hehe, even though you are pumping out a gif to tell them not to steal images (gif,jpg,png)  just kidding blaask.. i also prefer #2 actually 
|
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 2
Veteran
|
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 2 |
it's a 4k image we send out  ![[Linked Image from themepark.nl]](http://themepark.nl/dontstealourbandwith.gif)
Last edited by blaaskaak; 09/26/2007 12:47 PM.
|
|
|
|
|
Joined: Jun 2006
Posts: 225
enthusiast
|
|
enthusiast
Joined: Jun 2006
Posts: 225 |
Thanks, however I don't think .htaccess files work with IIS
|
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 2
Veteran
|
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 2 |
Hmm, I guess it doesn't. After googling I did find this: http://www.helicontech.com/hotlinkblocker/There's more to explore, but it's not so easy as with apache.
|
|
|
|
|
Joined: Dec 2003
Posts: 1,798 Likes: 2
Pooh-Bah
|
|
Pooh-Bah
Joined: Dec 2003
Posts: 1,798 Likes: 2 |
I'm almost positive in windows you can block any site loading anything from your site where the request doesn't come from someone clicking on your site to begin with (like the referrer feature in threads). It's been a while tho. ntdoc may have an answer for you.
|
|
|
|
|
Joined: Jun 2006
Posts: 225
enthusiast
|
|
enthusiast
Joined: Jun 2006
Posts: 225 |
|
|
|
|
|
Joined: Dec 2003
Posts: 1,798 Likes: 2
Pooh-Bah
|
|
Pooh-Bah
Joined: Dec 2003
Posts: 1,798 Likes: 2 |
|
|
|
|
|
Joined: Jun 2006
Posts: 225
enthusiast
|
|
enthusiast
Joined: Jun 2006
Posts: 225 |
Thanks Allen as well.. thats a great one, although having a few problems but ill keep at it  thanks both! superb
|
|
|
|
|
Joined: Jun 2006
Posts: 16,535 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,535 Likes: 150 |
Hehe, another reason I prefer Apache to IIS (and yes, apache can run in Windows ;))
|
|
|
|
|
Joined: Nov 2006
Posts: 3,097 Likes: 1
Carpal Tunnel
|
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097 Likes: 1 |
Hehe, another reason I prefer Apache to IIS (and yes, apache can run in Windows ;)) But most businesses that run Windows don't seem to want to run Apache. I'm not sure how to do it myself either as I've not had to stop it from happening on IIS since the sites are typically in a LAN where it's not an issue. If I run across anything I'll post back about it. There are a few great IIS blogs out there.
|
|
|
|
0 members (),
233
guests, and
188
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
|