Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 February 11th, 2004, 09:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default Securing a folder

I've set my application to Forms Authentication and locked the necessary folders from anonymous access but now I want to have a folder that only I can get to and nobody else. Is there a way to do this?

 
Old February 11th, 2004, 01:06 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If you specify that folder to only <allow ...> your user ID. Depending on what authentication scheme you are using this might not be easy. If you are using windows auth, you could speficy just your network userID. I'm not sure how you'd do that with forms authentication where you have to manually check your user IDs. Either way, putting another web.config with the one user allowance in that folder, or by using the <location> node should get you what you need at least with regards to specifying one user for that folder.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old February 11th, 2004, 05:30 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I couldn't figure it out with forms so I check to see if the user.identity.name matches mine and if not redirect them.






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 the Online Site mekh Pro PHP 6 February 16th, 2004 03:32 PM





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