Block direct access to a file over http but allow php script access.
Posted
by Brandon G
on Stack Overflow
See other posts from Stack Overflow
or by Brandon G
Published on 2010-04-21T00:04:57Z
Indexed on
2010/04/21
0:13 UTC
Read the original article
Hit count: 436
I'm loading my files (pdf, doc, flv, etc) into a buffer and serving them to my users with a script. I need my script to be able to access the file but not allow direct access to it. Whats the best way to achieve this? Should I be doing something with my permissions or locking out the directory with .htaccess?
© Stack Overflow or respective owner