RE: [PHP] how to hide dbconnect file if its in published directory?
| From: | scott [gts] | Date: | Wed, 11 Jul 2001 14:54:00 +0000 |
| Subject: | RE: [PHP] how to hide dbconnect file if its in published directory? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57398@lists.php.net to get a copy of this message | ||
try putting an .htaccess file into that directory.
or (as someone else already suggested) tell apache
to disallow access to *.inc files (or to the entire
directory)
> -----Original Message-----
> From: Noah Spitzer-Williams [mailto:noahsw@cyberdude.com]
> Subject: [PHP] how to hide dbconnect file if its in published directory?
>
> Hey guys,
>
> I come for advice once again. Say i have a file dbconnect.inc which
> connects to my database. Now if this file is located in a directory
> accessible for to the web is there anyway that if someone types in that file
> i can detect it being accessed, instead of included, and redirect them
> elsewhere?
>
> Thanks guys!
>
> - Noah