Limiting access to upload area

This is a discussion on Limiting access to upload area within the PHP Language forums, part of the PHP Programming Forums category; The Why: I'm in the process of creating a Linux+Apache+PHP website with a public area and an ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-13-2003
Mark Hanford
 
Posts: n/a
Default Limiting access to upload area

The Why:
I'm in the process of creating a Linux+Apache+PHP website with a
public area and an admin area for configuration and updates.

The What:
One of the features of the admin area is image-upload, where the
images are subsequently viewably by the general public. Currently
I've created a dedicated "pictures" directory which world-writable
into which the PHP script puts the form-uploaded images. The admin
logging in is done via a database lookup, not .htaccess directives or
OS permissions.

The How:
It seems a bit risky (is it?) to have to directory so open, is there a
way I can allow the script to move files into that directory without
making it a+w?

Thanks,

Mark
Reply With Quote
  #2 (permalink)  
Old 09-13-2003
Kurt Milligan
 
Posts: n/a
Default Re: Limiting access to upload area

There's always concern when you have a generic upload area;
but only authenticated admins can upload the images, right,
not the general public?

Why does the directory have to be world writeable? It only has to
be writeable by the Apache user, right?

Kurt

Mark Hanford wrote:
> The Why:
> I'm in the process of creating a Linux+Apache+PHP website with a
> public area and an admin area for configuration and updates.
>
> The What:
> One of the features of the admin area is image-upload, where the
> images are subsequently viewably by the general public. Currently
> I've created a dedicated "pictures" directory which world-writable
> into which the PHP script puts the form-uploaded images. The admin
> logging in is done via a database lookup, not .htaccess directives or
> OS permissions.
>
> The How:
> It seems a bit risky (is it?) to have to directory so open, is there a
> way I can allow the script to move files into that directory without
> making it a+w?
>
> Thanks,
>
> Mark


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0