Ask a Question related to ASP.NET Security, Design and Development.
-
nickk #1
Preventing access to all file types in a directory using ASP.NET
Is it possible to prevent access to all files in a (virtual) directory using
ASP.NET and without using an ISAPI filter? I'm quite happy using the standard
classes for authentication and authorisation for ASP.NET (.aspx) pages, but I
want to stop unauthorised users accessing plain HTML pages, PDF files and SWF
files in a directory as well. Can I use HTTPModule for this? Basically, I
want to interrogate and filter all requests in a particular directory, but I
don't want to have to learn C++ just to complete this piece of work.
nickk Guest
-
Server cannot access application directory ... The directory does not exist or is not accessible because of security settings
If you are using Windows XP in a Workgroup, rather than a Domain, then by default "Simple Filesharing" is turned on, and you won't see a security... -
Access to workstations file directory
Hi there, Can anyone help with the following: I want a user to be able to click on a button (import image) then be presented with the normal... -
PHP file access and directory security
I have a directory protected with .htaccess / .htpasswd. After I'm validated, I run a php script which bombs out when trying to write a file to... -
preventing USB hdd access
I have the same query Joe. Has anyone found a solution for this issue of wanting to prevent access to storage devices via the USB ports? ... -
Security: Preventing direct access to a PDF file
but if a user ,who has right to log in ,opened the pdf and know the url of this pdf,then he tell this url to others ,who has no right to log in,so... -
ekeenan@gmail.com #2
Re: Preventing access to all file types in a directory using ASP.NET
Use Wildcard application maps to pass everything through the asp.net
framework dll and then use a http module or suitable authorization
mechanism written in asp.net.
This is a good example.
[url]http://www.eggheadcafe.com/articles/20040317.asp[/url]
nickk wrote:directory using> Is it possible to prevent access to all files in a (virtual)standard> ASP.NET and without using an ISAPI filter? I'm quite happy using thepages, but I> classes for authentication and authorisation for ASP.NET (.aspx)and SWF> want to stop unauthorised users accessing plain HTML pages, PDF filesBasically, I> files in a directory as well. Can I use HTTPModule for this?directory, but I> want to interrogate and filter all requests in a particular> don't want to have to learn C++ just to complete this piece of work.ekeenan@gmail.com Guest
-
Andy G #3
Re: Preventing access to all file types in a directory using ASP.NET
What I have done is very very simple, it may or may not apply to your
situation. This is the article that I found that worked for me.
[url]http://www.derkeiler.com/Newsgroups/microsoft.public.dotnet.framework.aspnet.security/2003-03/0151.html[/url]
I added a couple application extensions just like the article said and it
worked great. Very easy fix.
"nickk" <nickk@discussions.microsoft.com> wrote in message
news:559C4C64-1BF3-4EF0-94A4-44A54C7FD5A4@microsoft.com...using> Is it possible to prevent access to all files in a (virtual) directorystandard> ASP.NET and without using an ISAPI filter? I'm quite happy using thebut I> classes for authentication and authorisation for ASP.NET (.aspx) pages,SWF> want to stop unauthorised users accessing plain HTML pages, PDF files andI> files in a directory as well. Can I use HTTPModule for this? Basically, I
> want to interrogate and filter all requests in a particular directory, but> don't want to have to learn C++ just to complete this piece of work.
Andy G Guest



Reply With Quote

