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

Posted by Mike on 11/02/07 09:28

"Michael Fesser" <netizen@gmx.de> wrote in message
news:jjaki3lk9vj5n7dc9ab4jle8p7nmnvqunj@4ax.com...
> .oO(Mike)
>
>>not sure i'm following what you are asking correctly but, if you move:
>>
>>> MYSITE.com/one.php
>>> MYSITE.com/two.php
>>
>>to a folder outside of the document root, example
>>
>>> MYSITE.com/secure/one.php
>>> MYSITE.com/secure/two.php
>>
>>you can then use htaccess to secure this directory and subsequently the 2
>>files. Alternatively instead of using htaccess you can use PHP to secure
>>the 2 pages.
>
> "Outside of the document root" usually means _really_ outside and not
> just one level deeper in a sub directory:
>
> /MYSITE.com/ (doc root)
> /secure/one.php
> /secure/two.php
>
> Then you don't need a .htaccess anymore, since /secure can't be accessed
> by any URL at all.
>
> Micha


Wherever he puts them there is no reason for him not to use .htaccess as
well. There must be a reason he
needs these 2 files on the server otherwise he might as well remove them.

 

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

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