Page 1 of 1

Keeping images secure

Posted: Mon Jul 12, 2004 11:13 pm
by bradles
I have the following folders on my host server.

etc
mail
public_ftp
public_html
tmp
www

Apparently everything I put in "public_html" will be seen by online viewers as my site. As I want to have clients access their images via a password system, someone advised me to have a folder outside this to store the images and have php load the images via a path to that folder...that way no unauthorised access can happen.

If I was to do this, do I just add another folder to the folders here. Example, add the folder /Clients/Weddings/Smith/

As you can see I am fairly new to PHP...but I want to do it properly.

Posted: Mon Jul 12, 2004 11:20 pm
by John Cartwright
yea that can get ugly though,

I would recommend using .htaccess to password protect directories.

Posted: Mon Jul 12, 2004 11:29 pm
by bradles
please forgive my lack of knowledge on this topic. In what way does it get ugly?

Posted: Mon Jul 12, 2004 11:31 pm
by John Cartwright
as you can see those files are "system files" like mail, I wouldn't recommend mixing up these folders with user folders. What's wrong with putting them in public_html/ or www/ with a simple password?

Posted: Tue Jul 13, 2004 1:01 am
by crabyars
Agreed with Phenom, .htaccess is probably the only way to go for full protection. (short of some kind of secure activeX / java viewer) It is a pain I know.

Posted: Tue Jul 13, 2004 1:11 am
by bradles
so .htaccess is just using the password protection supplied in my cpanel?