View previous topic :: View next topic |
Author |
Message |
PeterSwiss -
Joined: 27 Feb 2006 Posts: 20 Location: Zurich, Switzerland
|
Posted: Thu Dec 21, 2006 8:11 pm Post subject: access control |
|
|
I want to protect a directory resp. virtual path, say /doro .
However one file should be not protected, say /doro/drive.php
is such a scheme possible?
PS because of php include path issues and the like, drive.php has to be in the directory /doro and I do not want to move it somewhere else. However , and maybe this a solution, the virtual path need not be /doro/drive.php , it could be /silv/drive.php (the same real directory) |
|
Back to top |
|
 |
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Thu Dec 21, 2006 9:12 pm Post subject: |
|
|
The way directory protection works is say:
Directory A has 3 files in it
NONE of the files are index.php, index.htm, index.html
If someone types http://www.fakedomain.com/a/ they will not see any files
say one of the files is FILE.php
is someone types http://www.fakedomain.com/a/file.php file.php will be executed _________________ Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Dec 22, 2006 11:11 am Post subject: Re: access control |
|
|
PeterSwiss,
If this file is to be only included by other PHP scripts and not meant to be directly accessible by an URL, you can forbid its access as follows: Add an IP control rule for virtual path /doro/drive.php and deny access to all IP addresses (add * in the Denied IP addresses table). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|