With PHP, not without creating an index file.

If the server is apache, you can simply create a .htaccess file in the
directory, containing:

order deny,allow
deny from all 


I'm pretty sure that should do it.


-----Original Message-----
From: Tom Malone [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 12, 2001 11:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Protecting a directory


I hope this is the appropriate place for this post - I apologize in
advance if I'm stepping on any toes... I have created a database to
manage my contacts in a sub-directory of my site. I used php user
authentication to protect the directory, but you can still see the
directory index by entering "http://www.somefakeurl.com/admin/.
Since i do not want to use an index page in that directory, is there any
way to keep people from seeing that index using PHP?

Thank you

Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to