coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: rostros on September 13, 2004, 12:21:49 PM

Title: Image Path URL Easy to Hack ?
Post by: rostros on September 13, 2004, 12:21:49 PM
Im sure I have seen one of these related threads before but could not find it.

Anyways My CPG has members and I have it so only Registered Members can See Full Size Only, and Un-Registered Members can see the Thumbnail and Intermediate Photo, I have noticed that there is an Easy hack to see the Full Size image, once the intermediate photo is loaded, the Un registered user can right click and view the Photo URL Path e.g

                  http:yoursite.com/cpg/images/gallery/normal_image.jpg  

Then all they need to do is delete the Normal_ and they have the ability to view the full picture using a direct path, also this is a problem as image hotlinking to other sites is a big problem for me.

I have currently got a Javascript disabling the right click on images but I would like to be able to remove this as right click is a popular choice when looking at images.

Any Help would be great  :)
Title: Re: Image Path URL Easy to Hack ?
Post by: Casper on September 13, 2004, 06:20:26 PM
Try this, from the faq, http://coppermine.sourceforge.net/faq.php#preventHotlinks
Title: Re: Image Path URL Easy to Hack ?
Post by: TyL on September 21, 2004, 05:26:35 PM
Ok but don't work on apache & windows :(
Title: Re: Image Path URL Easy to Hack ?
Post by: Tranz on September 21, 2004, 05:34:16 PM
I think that code just prevents hotlinking, but not direct access from the browser address bar.

Try this: http://forum.coppermine-gallery.net/index.php?topic=3021.msg45672#msg45672

But I don't know if it is specific to linux/unix.

@TyL: Also, since you have multiple questions, please specify what doesn't work and how it doesn't work.
Title: Re: Image Path URL Easy to Hack ?
Post by: Tarique Sani on September 22, 2004, 06:48:58 AM
You can have an .htaccess file check for referer and see if it is displayimage.php of your site - basically the same principle as the prevention of hotlinking - AFAIK .htaccess will work just the same on Apache for windows as it does for *nix

But still my contention is if it is on the web it is stealable - may be you should really look at session based one time URL generation