Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 2nd, 2003, 06:02 AM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Securing content

We are planning to offer content only accessible to paying customers. Obviously, securing this content against unauthorized access is a big concern. We use IIS, right now the whole site is developed in ASP but we could use .NET if needed.

The ideas I have so far about how to do it are:

- An ASP module / CGI that checks for user and password, and if they are correct reads the file and sends it to the user. That would be secure enough, but I'm concerned about the server load that would cause a CGI sending a large binary file directly to a client, instead of letting IIS handle the sending.

- Using IIS security, as far as I know, would require creating a Windows user in the server machine for every paying customer, which is unfeasible for us.

- The most efficient way to handle it would be an ISAPI filter to check our user database before allowing access to the paying files. But developing ISAPI filters is complex stuff, and it would also mean that every time there is a server problem, the systems people would blame the filter instead of trying to fix it on their end. ;)

- Another team that uses Unix solved this very same problem creating temporary symbolic links to the files, that were deleted 15 minutes after the user accesed them. But I cannot do that on Windows. I can create virtual directories into IIS, but that would mean putting every file in a different directory, and besides, I'm not sure about creating virtual directories programatically.

What do you people think? Should I take the risk and make the ISAPI filter? Would the first option be really that bad for the server? Am I missing a much simpler way to do what i want?

Thanks in advance.
 
Old July 2nd, 2003, 06:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I asked a very similar question in another forum, try taking a look at:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=39701

I hope this is the sort of thing you are looking for, it certainly helped me.

Regards
Owain Williams
 
Old July 3rd, 2003, 05:04 AM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It certainly helps, thank you!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Securing connection strings haines ASP.NET 2.0 Basics 1 March 2nd, 2008 04:28 PM
Securing xp_cmdshell Steve_tucker SQL Server 2000 1 December 8th, 2004 06:44 PM
Securing a folder stu9820 ASP.NET 1.0 and 1.1 Basics 2 February 11th, 2004 05:30 PM
Securing File Manager pkemman BOOK: ASP.NET Website Programming Problem-Design-Solution 4 August 31st, 2003 04:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.