RE: [PHP] Protecting a directory
| From: | Matthew Loff | Date: | Fri, 13 Jul 2001 03:36:52 +0000 |
| Subject: | RE: [PHP] Protecting a directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57682@lists.php.net to get a copy of this message | ||
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:tom@fluidgraphix.com]
Sent: Thursday, July 12, 2001 11:24 PM
To: php-general@lists.php.net
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: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net