You are here: Re: protect php file « PHP Language « IT news, forums, messages
Re: protect php file

Posted by C. on 10/01/07 10:09

On 29 Sep, 20:21, Michael Fesser <neti...@gmx.de> wrote:
> .oO(artev)
>
> >example that I want to do:
> >if I have this 3 files
> >MYSITE.com/index.php
> >MYSITE.com/one.php
> >MYSITE.com/two.php
>
> >I want that file two.php and file three.php aren't never accesible by url;
>
> Store them outside of the document root.
>
> Micha

Keeping the files outside the doc root is by far the most sensible
idea....but not always a practical one. If you can't access files
outside the document root, but can create .htacces files, you'll
probably find that the webserver is configured to disallow access to
any file beginning .ht - so renaming the files accordingly may have
the desired effect (e.g. MYSITE.com/.htone.php). This is a hack though
and reliant on the config not changing.

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация