[nycphp-talk] Image directory restriction
Michael Sims
jellicle at gmail.com
Wed Aug 31 09:56:44 EDT 2005
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
More information about the talk
mailing list