access control

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
PeterSwiss
-


Joined: 27 Feb 2006
Posts: 20
Location: Zurich, Switzerland

PostPosted: Thu Dec 21, 2006 8:11 pm    Post subject: access control Reply with quote

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 View user's profile Send private message
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Thu Dec 21, 2006 9:12 pm    Post subject: Reply with quote

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 View user's profile Send private message AIM Address
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Dec 22, 2006 11:11 am    Post subject: Re: access control Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group