NYCPHP Meetup

NYPHP.org

[nycphp-talk] securing a file w/ htaccess?

billy reisinger billy.reisinger at gmail.com
Thu Nov 17 11:01:40 EST 2005


Hello, all -
This is probably a simple thing, but here goes:
I have a JavaScript file in an includes directory that I want to keep
private - i.e. I don't want anyone to be able to pull it up in their
web browser so that they can see the contents of it.  On the other
hand, I need a certain php script to be able to have access to it.
All of this is in a shared hosting environment.
I've tried to use .htaccess by limiting access to only "localhost",
the ip of the server, and the domain name, but everything I try ends
up denying permission to the php script trying to access the file.
Thanks,

--
Billy Reisinger
billy.reisinger at gmail.com
410.736.0148



More information about the talk mailing list