473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Advice to grant / forbid access to web resources

Hi friends,

In my application I have some User management.
Users are grouped into groups. Groups are listed "Groups"
Table along their properties:

TABLE: Groups

GroupKey
-----------------
Administrator
GuestUser
NormalUser
PowerUser
....
Another table "WebResources" lists the web resources, that is pages

Or other objects which can be browsed by the an user:
TABLE: WebResources

ResourceKey Resource ...
--------------------------------------------------
PublicReport ~/Users/Guest/Reports/Report1.aspx
DailyManager ~/Users/Managers/Reports/Daily.aspx
PublicReport ~/Users/Guest/Reports/Public.htm
DemoPack ~/Users/Guest/Reports/Demo.zip
AdminLogin ~/Users/Admin.aspx
NormalLogin ~/Users/Manager.aspx
PowerLogin ~/Users/Manager.aspx
PublicLogin ~/Users/Guest.aspx
....
For each resource, it is given the group (one or more)
that can access the resource. This is given as an entry
In the "ResourcesAssociation" table (it's a many to many
relationship
between Resources and groups). Example:
TABLE: ResourcesAssociation

GroupKey ResourceKey
------------------------------------------------------------
GuestUser PublicReport
GuestUser DemoPack
NormalUser NormalLogin
PowerUser PowerLogin
GuestUser PublicReport
PowerUser DailyManager
PowerUser PublicReport
NormalUser DemoPack
NormalUser PublicReport
....

My question:

While I find easy to control resources access within .aspx
Pages, I am confused about the best way to prevent/grant access to
other resources such as .htm, .zip, etc, like for instance the 2
entries:

~/Users/Guest/Reports/Public.htm
~/Users/Guest/Reports/Demo.zip

I would like to hear your opinions about the best way to control the
access
to non .aspx resources, within the above design.

Thanks in advance for any suggestion,

-Tom

Jul 14 '06 #1
0 975

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ben Binskin | last post by:
Im rather new to developing mysql/php applications and am after some advice on handling user validation for a web based system, ive implimented a number of ways and would like to know which way is...
14
by: Martin v. Löwis | last post by:
The Python Software Foundation is seeking grant proposals for projects related to the further development of Python, Python-related technology, and educational resources. The PSF plans to issue...
0
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set up and start up all were normal, as far as I...
5
by: Peter yeshew | last post by:
Is it possible to forbid closing the form through the File- Close menu ? On my form i have a command button called CmdDeleteInvoice. When this command button is visible ,i want to forbid the user...
13
by: Richard Hollenbeck | last post by:
To prevent future apostrophe bugs and errors, isn't it just simpler to forbid an apostrophe from being entered into a text field? For example, couldn't "Alice's Restaurant" be changed to "Alices...
6
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
2
by: Grant Merwitz | last post by:
Hi I am currently weighing up two options. I have a data i need available for my website. However, this data is only available via a web service and too slow to retrieve on a user request...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.