Advanced search  

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]

Pages: [1]   Go Down

Author Topic: help noob  (Read 10149 times)

0 Members and 1 Guest are viewing this topic.

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
help noob
« on: April 30, 2006, 03:50:52 pm »

Are picture files secure?
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #1 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.
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #2 on: April 30, 2006, 03:51:52 pm »

Sorry, for multiple replies, forum doesn't let me post long message.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: help noob
« Reply #3 on: April 30, 2006, 04:59:18 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.
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #4 on: May 01, 2006, 05:39:13 pm »

sorry for the following multiple replies but i'm still having problems posting.
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #5 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. 
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #6 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. 
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #7 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? 
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #8 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.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: help noob
« Reply #9 on: May 01, 2006, 06:21:25 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.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: help noob
« Reply #10 on: May 01, 2006, 06:22:28 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.
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #11 on: May 02, 2006, 03:34:42 am »

this board has problems.  here's my multiple posts again....
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #12 on: May 02, 2006, 03:34:58 am »

something like the following:
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #13 on: May 02, 2006, 03:36:22 am »

<?php
session_start();
if (!isset($_SESSION['logged_in'])) {
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #14 on: May 02, 2006, 03:36:40 am »

header('Location: ../log_in_page.php');
die();
} else {
$img_file = "test.jpg";
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #15 on: May 02, 2006, 03:36:52 am »

header("Content-Type: image/jpeg");
readfile($img_file);
exit;
}
?>
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #16 on: May 02, 2006, 03:37:06 am »

html...
<img src="secure_img.php" />
Logged

peachee

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: help noob
« Reply #17 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: help noob
« Reply #18 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.