coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: peachee on April 30, 2006, 03:50:52 PM

Title: help noob
Post by: peachee on April 30, 2006, 03:50:52 PM
Are picture files secure?
Title: Re: help noob
Post by: peachee on April 30, 2006, 03:51:27 PM
I have it set to only registered users but ecard shows direct link to pictures without login so I'm concerned.
Title: Re: help noob
Post by: peachee on April 30, 2006, 03:51:52 PM
Sorry, for multiple replies, forum doesn't let me post long message.
Title: Re: help noob
Post by: Joachim Müller on April 30, 2006, 04:59:18 PM
Quote from: peachee on April 30, 2006, 03:50:52 PM
Are picture files secure?
no, they're not, if your question actually is "are pics safe against theft". Don't put files on the internet if you're actually concerned about people stealing your pics.
If you have another issue, then post more details.
Title: Re: help noob
Post by: peachee on May 01, 2006, 05:39:13 PM
sorry for the following multiple replies but i'm still having problems posting.
Title: Re: help noob
Post by: peachee on May 01, 2006, 05:39:26 PM
with all the permissions with users and groups settings i was under the impression the login might use a user session that would only have access to view these pictures/pages. 
Title: Re: help noob
Post by: peachee on May 01, 2006, 05:39:45 PM
it would be easy to do wouldn't? 

i respect your comments regarding not putting photos on the internet if i'm worried about them getting stolen, but that's a little extreme. 
Title: Re: help noob
Post by: peachee on May 01, 2006, 05:39:59 PM
sites can easily be created that wouldn't allow unlogged in users to steal pictures. 

why have the settings in the program not to allow unlogged in users to view the pictures if the whole album folders are still accessibile directly? 
Title: Re: help noob
Post by: peachee on May 01, 2006, 05:40:15 PM
or am i misunderstanding something here? 

my site is just for about 5 people that will be sharing pics that i don't want the public to have access to or having search engines like google cache.
Title: Re: help noob
Post by: Tranz on May 01, 2006, 06:21:25 PM
Quote from: peachee on May 01, 2006, 05:39:59 PM
why have the settings in the program not to allow unlogged in users to view the pictures if the whole album folders are still accessibile directly? 
If you don't want to allow people to view folder listings, and if you have apache and .htaccess access, you can disable directory listing.

As for search engine caching, look up info on robots.txt

These are not a Coppermine issues, but the way the web works. Fortunately, there are ways around them.
Title: Re: help noob
Post by: Tranz on May 01, 2006, 06:22:28 PM
Quote from: peachee on May 01, 2006, 05:39:59 PM
sites can easily be created that wouldn't allow unlogged in users to steal pictures.
If it's so easy, why don't you show us some code? Don't claim ease if you can't show us the code.
Title: Re: help noob
Post by: peachee on May 02, 2006, 03:34:42 AM
this board has problems.  here's my multiple posts again....
Title: Re: help noob
Post by: peachee on May 02, 2006, 03:34:58 AM
something like the following:
Title: Re: help noob
Post by: peachee on May 02, 2006, 03:36:22 AM
<?php
session_start();
if (!isset($_SESSION['logged_in'])) {
Title: Re: help noob
Post by: peachee on May 02, 2006, 03:36:40 AM
header('Location: ../log_in_page.php');
die();
} else {
$img_file = "test.jpg";
Title: Re: help noob
Post by: peachee on May 02, 2006, 03:36:52 AM
header("Content-Type: image/jpeg");
readfile($img_file);
exit;
}
?>
Title: Re: help noob
Post by: peachee on May 02, 2006, 03:37:06 AM
html...
<img src="secure_img.php" />
Title: Re: help noob
Post by: peachee on May 02, 2006, 03:37:35 AM
with the above type of example, you wouldn't have to hang all the images open to the public internet would you?
Title: Re: help noob
Post by: Joachim Müller on May 02, 2006, 08:15:18 AM
dynamic creation of images is a resources monger, not an option for most users. Actually, this is pseudo-code, not real code.