Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > restrict acces to simple html files

Reply
Thread Tools

restrict acces to simple html files

 
 
Anton Sommer
Guest
Posts: n/a
 
      11-24-2003
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


 
Reply With Quote
 
 
 
 
Chris Jackson
Guest
Posts: n/a
 
      11-24-2003
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$...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict acces by url pattern|JBOSS/TOMCAT de-ke Java 0 07-20-2009 11:55 AM
Acces files on remote server - problem =?Utf-8?B?YmVub2l0?= ASP .Net 3 12-07-2006 08:27 PM
Try to restrict acces to all my pages. Jensen bredal ASP .Net 2 03-09-2005 09:37 AM
How to restrict direct access to JSP files, only allow access via servlet? Anan Java 8 12-08-2004 11:16 PM
Acces to TD in array on html document ? Moi Javascript 1 09-04-2003 06:53 PM



Advertisments
 



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