Ask a Question related to ASP.NET Security, Design and Development.
-
Jos #1
members-only access to all files in a directory
I want to create a "member zone" with restricted access to registered
members only.
I already succeeded to restrict access to ASPX files in a particular
directory using ASP.NET security.
I use Forms authentication and the <location> tag in web.config.
Is it possible with ASP.NET to apply the same restriction to all files (with
extension HTM, HTML, JPG, etc...) within a given directory?
--
Jos
Jos Guest
-
Active Directory Groups - more than 1000 members
I?ve been polling the ?member? attribute of Active Directory (AD) groups for some time and I came across a new obstacle. Groups with more than 1000... -
Giving Access to files in a directory
I have this script that checks user permissions in a database table and gives users access to files in a directory on the server. At the moment it... -
Giving users access to certain files in a directory
Ok here is my problem. We have a directory of excel files and users can only look at files they have been assigned permissions for, all the files... -
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... -
Server cannot access application directory... The directory does not exist or is not accessible because of security settings.
Hi, I have this issue with the error below. Let me explain my goal and my server environement: Goal: To have 3 separate web servers reading... -
Chris Jackson #2
Re: members-only access to all files in a directory
You wouldn't do that with your web.config settings. Why? Because web.config
is read by the ASP.NET runtime, which is invoked depending on the file
extension. You could remap the other file extensions to the ASP.NET handler
(I honestly don't know what the outcome of this would be, but it is worth a
shot?) so they pick up the security - the only thing that might go wrong is
that the handler might not know what to do with these files. If you are
using Windows Authentication, you can just set this up using NTFS
permissions and not worry about that.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Jos" <josnospambranders@fastmail.fm> wrote in message
news:uszfT1t8DHA.2168@TK2MSFTNGP12.phx.gbl...>I want to create a "member zone" with restricted access to registered
> members only.
>
> I already succeeded to restrict access to ASPX files in a particular
> directory using ASP.NET security.
> I use Forms authentication and the <location> tag in web.config.
>
> Is it possible with ASP.NET to apply the same restriction to all files
> (with
> extension HTM, HTML, JPG, etc...) within a given directory?
>
> --
>
> Jos
>
>
Chris Jackson Guest
-
richlm #3
Re: members-only access to all files in a directory
Yes - you can map other extensions (you can even specify .*) in the web site mappings
You could then write a HttpHandler that will intercept all requests and implement your access control logic
richlm Guest
-
Chris Jackson #4
Re: members-only access to all files in a directory
> Yes - you can map other extensions (you can even specify .*) in the web
But will it handle file types like html and jpg without writing such a> site mappings.
> You could then write a HttpHandler that will intercept all requests and
> implement your access control logic.
handler, just by passing them through? Or will this person need to implement
a handler to do this passthrough?
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
Chris Jackson Guest
-
richlm #5
Re: members-only access to all files in a directory
It passes through OK with no additional programming effort for static
files - i.e. ones with IE understands - jpg, txt, htm, .... (but not .asp)
So you should NOT need a HttpHandler (or a HttpModule) to do the
passthrough.
BUT I am not sure that the ASP.NET security checks (defined in web.config)
are made in all cases - e.g. it looks like .jpg are covered, but for .htm
you still get the page even if you should be denied access (on XP). So you
would perhaps still need a HttpHandler/Module to pre-process the request and
decide whether or not to pass it on or reject it.
Richard.
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:uLWhZHl9DHA.340@tk2msftngp13.phx.gbl...implement>> > Yes - you can map other extensions (you can even specify .*) in the web
> > site mappings.
> > You could then write a HttpHandler that will intercept all requests and
> > implement your access control logic.
> But will it handle file types like html and jpg without writing such a
> handler, just by passing them through? Or will this person need to> a handler to do this passthrough?
>
> --
> Chris Jackson
> Software Engineer
> Microsoft MVP - Windows Client
> Windows XP Associate Expert
> --
> More people read the newsgroups than read my email.
> Reply to the newsgroup for a faster response.
> (Control-G using Outlook Express)
> --
>
>
richlm Guest



Reply With Quote

