Suppressing logon window

1

1SALz

Hi,

Within a web application, I have secured folder/aspx pages using the
location tag in web.config.

Now whenever an unauthorized user tries to access that page, a popup dialog
is displayed - which i dont want.
I want to show a nicer message like 'you dont have access to this area' on a
possibly redirected page.

How can I do that?

TIA.

Other configuration:
- Under IIS security, only integrated authentication is allowed. (All others
are unchecked)
- Under web.config, I have secured the pages using location tag with roles
set to Active Directory groups.
 
M

MSFT

1

1SALz

Thanks but that didnt help.

Within system.web, here is what I added (beside the authorization block):

<customErrors defaultRedirect="~/noaccess.htm" mode="RemoteOnly">
<error statusCode="401.2" redirect="~/noaccess.htm"/>
</customErrors>

Still the login dialog is displayed and user is given 3 attempts to login
successfully.
What I am trying to do is to redirect user to noaccess page without showing
any login dialog.
 
M

MSFT

To disable the Login dialog, you may make some changes on the virtual
directory's security, for example, use intergrated windows authentication
instead of basic authentication.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
M

MSFT

If you which to get rid of the dialog, then you need to allow anonymous
access and handle your security some other way, for example form
authentication.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top