Re: Re[2]: [PHP] how do i hide my .inc files in apache??
| From: | Jim Jagielski | Date: | Wed, 17 Jan 2001 14:53:17 +0000 |
| Subject: | Re: Re[2]: [PHP] how do i hide my .inc files in apache?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35043@lists.php.net to get a copy of this message | ||
Why not:
<Files *.inc>
order deny,allow
deny from all
</Files>
Andrew Sitnikov wrote:
>
> Hello jeremy,
>
> j> don't name them .inc files.
>
>
> j> Name them blahblah.inc.php or something that will be parsed, and
> j> therefore not just gurped up by the server.
>
> I think, more secure is move inc file out www tree.
>
> /home/user/public_html/index.php
> /home/user/include/lib.inc
>
> index.php
> <?
> include('/home/user/include/lib.inc');
> ?>
>
>
> Best regards,
> Andrew Sitnikov
>
>
>
> --
> 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
>
--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"Casanova will have many weapons; To beat him you will
have to have more than forks and flatulence."