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?
It doesn’t hurt to have an allow element. But it won’t change anything.
From MSDN:
Edit: To answer your question below. What you probably want is:
In other words. Allow admins but deny EVERYONE else.