Prevent hotlinking and image theft Prevent hotlinking and image theft
 

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]

Main Menu

Prevent hotlinking and image theft

Started by Colt45, February 05, 2008, 10:40:01 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Colt45

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.


ch33p0x


Fabricio Ferrero

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.
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

Joachim Müller

ch33p0x is gone (permanent ban).

@Fabricio: you're too nice.

filip.krolupper

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.