Reply to Re: protect php file

Your name:

Reply:


Posted by Michael Fesser on 11/01/07 19:38

..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

[Back to original 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

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