470,849 Members | 1,057 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Deny access to a directory

I have a directory on my host that i want to protect.

Users should not be able to access the files in the directory
by typing the url in the adress bar, but i should be able to
access them in my php-script.

I tried to use a .htaccess file but could not get it to work.
I also tried to place the directory above the WWW root, but there i
could not access them.

Any tips?

Thank you
Jul 17 '05 #1
1 2808
spike <jo**@ljungh.se> wrote:
I tried to use a .htaccess file but could not get it to work.
Please be more verbose. What did you try? What were the errors you got?
I also tried to place the directory above the WWW root, but there i
could not access them.


This is the best solution IMHO, so again: please tell us what you tried
and where you failed...

--

Daniel Tryba

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Carlos Marangon | last post: by
2 posts views Thread by spike | last post: by
4 posts views Thread by Dan | last post: by
7 posts views Thread by Brian Linden | last post: by
9 posts views Thread by Matt | last post: by
2 posts views Thread by Markus Palme | last post: by
1 post views Thread by Scottmat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.