Re: restrict acces to simple html files

From: Chris Jackson (chrisjATmvpsDOTorgNOSPAM)
Date: 11/24/03


Date: Mon, 24 Nov 2003 15:25:07 -0500

The problem is that you aren't passing over file access to the ASP.NET
runtime - this "handoff" occurs based on file extension, which is why
ASP.NET and ASP Classic can co-exist. Your web.config is never touched,
because the ASP.NET handlers are never invoked. You will need to either
protect using file system ACLs (assuming that you are using Windows
authentication) or else simply change the file extension to aspx on these
HTML files.

-- 
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)
-- 
"Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
news:bprsfq$k15$01$1@news.t-online.com...
> Hello folks,
>
> I have my security stuff set up and it works fine for all aspx files, so a
> user that want to access an aspx file in a certain folder can only access
> them when being logged on correctly. But when putting a normal html file
> into that folder that is only accessible by logged on users, that very
file
> can be accessed by everybody, you don`t need to be logged on.
> So how can I secure these html files from unauthorized access?
>
> Thank you
>
>
>             Anton
>
>


Relevant Pages

  • Re: Lost document When I Changed Its Name Please Help!
    ... those with a file extension associated with Word. ... > rename the document in Windows Explorer. ... >>to open it by double-clicking in an Exploring window. ...
    (microsoft.public.word.application.errors)
  • Re: File Extension, Program to use Problem!
    ... 2004 Windows MVP "Winny" Award ... >> associations that XP ships with. ... >> fileType = Specifies the file type to associate with the file extension ...
    (microsoft.public.windowsxp.general)
  • Re: Windows XP Media Center Edition problems
    ... Digital camera saves in be read by windows media center, ... What is the file extension on the video ...
    (microsoft.public.windows.mediacenter)
  • Re: Playing Music CDs
    ... I have not been able to rip these two disk ... I have looked at tracks on other CD's and able to see a file extension. ... rip two different CD that I have "Tim McGram-Let It Go" and the Windows ... "Windows Media Player encountered a problem while playing the file. ...
    (microsoft.public.windowsmedia.player)
  • Re: .bat vs .cmd
    ... File Extension .cmd ... File Description Windows NT Command Script ... Files of .cmd will be listed in the File Types dialog box as Windows NT ...
    (microsoft.public.windowsxp.general)