Restricting Viewing of Full Size Images

Stevo

Joined: 2002-10-14
Posts: 23
Posted: Mon, 2002-10-14 19:42

Hey Guys,

Is there a way to stop anonymous (or even logged in) viewers of my gallery from seeing the full-size images that I have uploaded?? I like to keep the full-size ones in my gallery, but I'm worried about people being able to steal them.

Can anyone help?!!

Thanks

--Stevo

 
pomeroyt
pomeroyt's picture

Joined: 2002-10-14
Posts: 18
Posted: Mon, 2002-10-14 20:30

As a quick hack you could change the following entry on line #397 of view_photo.php from

echo "<a href=" . makeAlbumUrl($gallery->session->albumName, $id, array("full" => 1)) . ">";

to

echo "<a href=" . makeAlbumUrl($gallery->session->albumName, $id, array("full" => 0)) . ">";

this will just redirect them to the resized image ... there is probably a better way to do this ... but this is the fastest. Keep in mind that this is only going to protect the images from someone who clicks on the re-sized graphic expecting to get full size version. Any savy gallery user can still be able to make a fully qualified request to the original graphic.