Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   Securing a directory (http://www.velocityreviews.com/forums/t765793-securing-a-directory.html)

Simon Harvey 02-15-2004 07:28 PM

Securing a directory
 
Hi everyone,

I just read an article that said that when you use a web.config file to
secure a directory, all it can do is secure the asp.net resources in that
directory - not any non .net resources.
For ecample, image files, html and asp files would not be secured.

I didnt actually realise this and it gave me a bit of a fright! Can anyone
suggest the best way to keep a directory secured in an application using
Forms Authentication.

It's not a problem for me at the moment because I havent made a site that
would be affected, but I'm not really sure how I would ensure a directory
was totally locked down should the need arise.

Thanks to anyone who can help

Kindest Regards

Simon




richlm 02-18-2004 10:11 AM

RE: Securing a directory
 
Simon
Yes that is correct - only files with an ASP.NET extension (.aspx, .asmx,...) are processed by the ASP.NET ISAPI extension
Files with .asp extension are processed by traditional ASP and so on.

NTFS permissions will be used for static files such as .jpg .txt etc.

You can see the mappings in the IIS manager - right click on your web site, "properties" then click "configuration" on the virtual directory tab.

Check this article on MSDN for more info:
http://msdn.microsoft.com/library/de...cnetlpMSDN.asp


richlm 02-18-2004 10:56 AM

RE: Securing a directory
 
One other thing - you should also run IIS lockdown wizard and install URLscan
You can configure URLscan to reject requests for file types that you don't want to be directly requestable

I run URLScan even in my development environment.


All times are GMT. The time now is 03:52 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57