NYCPHP Meetup

NYPHP.org

[nycphp-talk] Image directory restriction

Paul Reinheimer preinheimer at gmail.com
Wed Aug 31 12:16:54 EDT 2005


+1 to putting the images outside the web tree, it's simple and
completely effective


paul



On 8/31/05, Michael Sims <jellicle at gmail.com> wrote:
> On Wednesday 31 August 2005 09:11, Mark Withington wrote:
> 
> > Perhaps a dumb question, can anyone recommend an effective way to
> > restrict direct access to an images subdirectory?  Specifically, I would
> > like to serve up images _only_ through .php scripts on the server, not
> > directly via a URL....
> 
> a) put the images directory outside the web tree.
> 
> b) create a file named ".htaccess" in the directory with this line of text
> in it: "Deny from all".
> 
> 
> Michael Sims
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
> 


-- 
Paul Reinheimer
Zend Certified Engineer



More information about the talk mailing list