Run BASIC
« protecting directories from access? »

Welcome Guest. Please Login or Register.
Dec 8, 2009, 6:03pm



Run BASIC
Run BASIC Community Wiki
Easy Web Programming with Run BASIC

Run BASIC :: Run BASIC Personal Server :: Personal Server :: protecting directories from access?
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: protecting directories from access? (Read 416 times)
votan
Senior Member
****
member is offline





Joined: Jul 2008
Gender: Male
Posts: 300
Karma: 3
 protecting directories from access?
« Thread Started on Nov 8, 2008, 9:24am »

Is there any way to protect folders in the public folder similar to .htaccess? Maybe the underlaying server already supports something like this?
Unfortunately all subfolders in the public folder are fully accessable by anyone.. but I need to limit access to some folders by clients IPs that will be stored in a seperate file.
Link to Post - Back to Top  IP: Logged
carlgundel
Administrator
*****
Creator of Run BASIC
member is offline

[avatar]



Joined: Aug 2007
Gender: Male
Posts: 922
Karma: 8
 Re: protecting directories from access?
« Reply #1 on Nov 8, 2008, 4:24pm »


Nov 8, 2008, 9:24am, votan wrote:
Is there any way to protect folders in the public folder similar to .htaccess? Maybe the underlaying server already supports something like this?
Unfortunately all subfolders in the public folder are fully accessable by anyone.. but I need to limit access to some folders by clients IPs that will be stored in a seperate file.

The public folder is meant to be openly accessible. What problem are you trying to solve?

-Carl
Link to Post - Back to Top  IP: Logged
votan
Senior Member
****
member is offline





Joined: Jul 2008
Gender: Male
Posts: 300
Karma: 3
 Re: protecting directories from access?
« Reply #2 on Nov 8, 2008, 5:13pm »

i'm trying to create some sort of "members area" where only registered user have access. But the RB app needs be able to pull up image from the members folder via html img src commands. Problem with the public folder then is.. passing the url of the image or file will enable anyone to just open / download files from the members area.
What I need to do is to limit access to specific folders in the public folder to users whos IPs have been recorded and verified.
So, similar to basic htaccess.
Would be cool if there is a way to to this.. or if something could be added sometimes soon. :)
Only thing that would make all these things obsuoete would be a way to actually read the apache headers that get send along with every request when running RB behind Apache reverse proxy. But according to some past posts, this does not seem to be so easy!?
« Last Edit: Nov 8, 2008, 7:45pm by votan »Link to Post - Back to Top  IP: Logged
Carl Gundel - admin
Administrator
*****
member is offline

[avatar]


[homepage]

Joined: Jul 2007
Gender: Male
Posts: 492
Karma: 5
 Re: protecting directories from access?
« Reply #3 on Nov 9, 2008, 3:34pm »

Perhaps I can add some sort of capability to enable what you need. I'm open to any ideas that people here might have about the simplest and most useful design for such a feature.

-Carl
Link to Post - Back to Top  IP: Logged
stormforce5
New Member
*
member is offline





Joined: Aug 2009
Gender: Male
Posts: 8
Karma: 0
 Re: protecting directories from access?
« Reply #4 on Aug 21, 2009, 12:56pm »

Hi Carl,

this would be a useful feature..... my idea which may or may not help....

have a extra folder called restricted , like public or projects_folder...

have a system variable - AccessRestrictedFolder$ ?? which by default would be set tp "No" and then users within their apps could change this to "Yes" within their apps to allow access to this folder..


hope this makes sense.... whether you can do this I'm not sure?

cheers

james
;)
Link to Post - Back to Top  IP: Logged
   [Search This Thread][Send Topic To Friend] [Print]

Google
Webrunbasic.proboards.com
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!