NYCPHP Meetup

NYPHP.org

[nycphp-talk] Image directory restriction

Jerry B. Altzman jbaltz at altzman.com
Wed Aug 31 09:20:26 EDT 2005


On 8/31/2005 9:11 AM, 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....

Put an .htaccess in the directory so that you can't browse to it at all, 
and have php include() the file in the web page directly? Or read it in 
and print it out?

maybe?

//jbaltz
-- 
jerry b. altzman        jbaltz at altzman.com              KE3ML
thank you for contributing to the heat death of the universe.



More information about the talk mailing list