Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Prevent hotlinking and image theft  (Read 6398 times)

0 Members and 1 Guest are viewing this topic.

Colt45

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Prevent hotlinking and image theft
« on: February 05, 2008, 10:40:01 am »

I'm in the process of creating a website/gallery for a local photographer and was concerned about image theft and hotlinking.

I've searched this forum for viable solutions and couldn't find any that were easily implemented and didn't cause additional server load.

While g00gling for some insight I came across this article:
http://www.thesitewizard.com/archive/bandwidththeft.shtml

Being a htaccess dummy it took me a while to come up with a slightly modified version that seems to work:
 
Code: [Select]
SetEnvIfNoCase Referer "^http://www.northshoremarketplace.info/.*$" locally_linked=1
SetEnvIfNoCase Referer "^http://www.digibug.com/.*$" locally_linked=1
#SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
  Order Allow,Deny
  Allow from env=locally_linked
</FilesMatch>

This .htaccess file was placed in the /cpg/albums folder.

I would appreciate if some of you experts could test this to see if it works for you.
http://www.northshoremarketplace.info/cpg/

Also, as I mentioned above, being a htaccess dummy I'm hoping I could get some suggestions on how to edit my .htaccess file to redirect users to an error page (preferably in the albums folder) for the error 403 obtained when trying to directly access the file(s).
 
Thanks in advance for your help.
 
Logged

ch33p0x

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Prevent hotlinking and image theft
« Reply #1 on: May 13, 2009, 08:22:59 pm »

no it didnt work!!!
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Prevent hotlinking and image theft
« Reply #2 on: May 13, 2009, 08:25:37 pm »

Are you joking?

First this, and now this.

You're just about winning a life ban. The only reason I don't do now it's because you didn't insult. However you're just disturbing people.
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Prevent hotlinking and image theft
« Reply #3 on: May 14, 2009, 01:29:23 am »

ch33p0x is gone (permanent ban).

@Fabricio: you're too nice.
Logged

filip.krolupper

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Prevent hotlinking and image theft
« Reply #4 on: May 25, 2009, 12:57:48 pm »

Try SignMyImage or Digimarc. http://www.adptools.com http://www.digimarc.com

Filip

I'm in the process of creating a website/gallery for a local photographer and was concerned about image theft and hotlinking.

I've searched this forum for viable solutions and couldn't find any that were easily implemented and didn't cause additional server load.

While g00gling for some insight I came across this article:
http://www.thesitewizard.com/archive/bandwidththeft.shtml

Being a htaccess dummy it took me a while to come up with a slightly modified version that seems to work:
 
Code: [Select]
SetEnvIfNoCase Referer "^http://www.northshoremarketplace.info/.*$" locally_linked=1
SetEnvIfNoCase Referer "^http://www.digibug.com/.*$" locally_linked=1
#SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
  Order Allow,Deny
  Allow from env=locally_linked
</FilesMatch>

This .htaccess file was placed in the /cpg/albums folder.

I would appreciate if some of you experts could test this to see if it works for you.
http://www.northshoremarketplace.info/cpg/

Also, as I mentioned above, being a htaccess dummy I'm hoping I could get some suggestions on how to edit my .htaccess file to redirect users to an error page (preferably in the albums folder) for the error 403 obtained when trying to directly access the file(s).
 
Thanks in advance for your help.
 

Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.