Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:48:07+00:00 2026-06-07T01:48:07+00:00

I wish to block access to all non registered users, So, wouldnt the following

  • 0

I wish to block access to all non registered users,

So, wouldnt the following work?

<authorization>
      <deny users="?" />
</authorization>

But, I have seen many users using the <allow> tag as well with the deny, tag. Why we need to write <allow> since we just deny the unwanted users?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:48:12+00:00Added an answer on June 7, 2026 at 1:48 am

    It doesn’t hurt to have an allow element. But it won’t change anything.

    From MSDN:

    The default configuration for ASP.NET contains an
    element, which authorizes all users. (By default, this rule is applied
    last.) If no other authorization rules match, the request is allowed.
    If a match is found and the match is a deny element, the request is
    returned with the 401 HTTP status code. If an allow element matches,
    the module allows the request to be processed further.

    Edit: To answer your question below. What you probably want is:

    <authorization>
          <allow role="Admin"/>
          <deny users="*" />
    </authorization>
    

    In other words. Allow admins but deny EVERYONE else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to block ALL my content from any users using an ad-blocking browser
I essentially wish to have a ridge style border but with custom colors. With
I'm new to web programming and I have the following form that I wish
I have a try - catch block that I wish to break like a
I wish to have a newsletter on my home page. I found the following
I have connected 2 mice to PC and I wish one mouse to work
The following method does not work because the inner block declares a variable of
I wish to iterate over a set but the contents of the set will
I have an object on the stack for which I wish its destructor to
I have this problem, I have some audio I wish to play... And I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.