RE: [PHP] how do i hide my .inc files in apache??
| From: | jeremy | Date: | Wed, 17 Jan 2001 13:42:03 +0000 |
| Subject: | RE: [PHP] how do i hide my .inc files in apache?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35035@lists.php.net to get a copy of this message | ||
Yes,
Making .inc parsable is a _potential_ solution. The problem is that why
should we as app programmers expect sysadmins to modify their default
apache installation to get around a problem that we can fix?
My vote is still just for include files to have a standard (already
accepted) extension.
--
Jeremy Kelley <jeremy@33ad.org> pgp keyid 0xAECBA355
Phil 1:21 www.ganooz.com
Car pour moi, la vie c'est le Christ, et la mort est un gain.
> -----Original Message-----
> From: Sebastian Stadtlich [mailto:Stadtlich@mediaworx.com]
> Sent: Wednesday, January 17, 2001 14:10
> To: 'Jamie Burns'; 'Php-General (E-Mail)
> Subject: AW: [PHP] how do i hide my .inc files in apache??
>
>
> why don't you rename your include files to
> *.inc.php
>
> so they are parsed by php and no valuable information would
> be given out.
> also you could use folowing lines in a .htaccess
>
>
> # .inc-files not readable:
> <Files ~ "\.inc$">
> Order allow,deny
> Deny from all
> </Files>
>
> sebastian
>
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: Jamie Burns [mailto:jamie.burns@dynamicexpression.co.uk]
> > Gesendet: Mittwoch, 17. Januar 2001 13:48
> > An: php-general@lists.php.net
> > Betreff: [PHP] how do i hide my .inc files in apache??
> >
> >
> > hi..
> >
> > can anyone tell me how i get apache to never send out the
> > contents of my include files (*.inc) to users?
> >
> > i dont want my source sode to be visible to browsers.
> >
> > thanks,
> >
> > jamie.
> >
>
> --
> 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
>