authorization for sub directory

V

viki

Hi All,
Could anybody advise me for the following..
I want to restrict access to a subdirectory in an web application
which has "integrated windows authentication". I have set the
directory security for the sub directory for a particular group. But
when the link goes to the page in the sub directory it asks for the
credentials again. I want to redirect to "not accessible" page
whenever any page in the subdirecotry is accessed by other groups.

Thanks in advance,
Viki
 
K

Ken Schaefer

You will need to override the 401 error status that ASP.NET is sending back,
and send back 200 instead (along with your custom text). When the webserver
sends a HTTP 401 status, the browser decides what to do, and most will
pop-up an authentication dialogue box (for the first three times - after
that they will display a message saying that you are not authorised to view
the page)

Cheers
Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top