Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Custom Security
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom Security

 Post Reply Post Reply Page  12>
Author
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Topic: Custom Security
    Posted: 11 April 2004 at 3:11pm

Hey all,

I would like to have an ASP.NET security system, which protects files in all formats, so file.exe and file.aspx are both protected. All the formats the server knows are being controlled by the aspnet_isapi.dll filter.

Anyway, I haven't got a clue where to start. I want a system that looks a bit like the .NET Forms system, but I want to set individual permissions for each file, or a whole directory, and the users that login are not Windows accounts, which is the case when using Integrated Authentication.

So, does any of you guys happen to know how to call a function whenever a file.extention gets requested? Or explain how to use the Global.asax if involved?

Gone..
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2004 at 5:13pm

Not sure, but I THINK you have to map the files to a DLL..

something similar was discussed in the jodohost forums, I can try to dig up the thread if you want

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2004 at 5:38pm

I didn't understand sh*t of it, but I don't know .Net either so it wasn't very surprising

 

look at this thread http://support.jodohost.com/showthread.php?t=1508 it's mainly about image hotlinking, but I think it maybe can help you

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2004 at 5:40pm
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2004 at 6:18pm
For that you would use a HTTP Handler. Do a google for "http handlers in asp.net". You may also find useful stuff if you search for http modules.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2004 at 6:37pm
Alright. Implenting a http handler isn't verry difficult. Mart, do you think it's better to compile the handler in DLL and attach that to the project, or just compile the handler within the project?
Gone..
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2004 at 8:57pm
At www.asp.net, the Community Starter kit uses an http handler to handle urls for .gif, .jpg, and jpeg images. The methodology is pretty well discussed on their CSK forum. One of the things it entails is mapping those extensions in IIS to the aspnet dll for the domain.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2004 at 3:30am
I think its better to just write an uncompiled class in the same project. Then youve got less DLL's to ship when you redistrbute. At devjunkies.com we have got it working fine without a seperate DLL.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.