coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: Colt45 on February 05, 2008, 10:40:01 AM

Title: Prevent hotlinking and image theft
Post by: Colt45 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:


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.

Title: Re: Prevent hotlinking and image theft
Post by: ch33p0x on May 13, 2009, 08:22:59 PM
no it didnt work!!!
Title: Re: Prevent hotlinking and image theft
Post by: Fabricio Ferrero on May 13, 2009, 08:25:37 PM
Are you joking?

First this (http://forum.coppermine-gallery.net/index.php/topic,51937.msg293393.html#msg293393), 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.
Title: Re: Prevent hotlinking and image theft
Post by: Joachim Müller on May 14, 2009, 01:29:23 AM
ch33p0x is gone (permanent ban).

@Fabricio: you're too nice.
Title: Re: Prevent hotlinking and image theft
Post by: filip.krolupper on May 25, 2009, 12:57:48 PM
Try SignMyImage or Digimarc. http://www.adptools.com http://www.digimarc.com

Filip

Quote from: Colt45 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:


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.