URL authorization and authentication
In this recipe, we will configure the URL authorization rule and enable and disable the authentication type of the website.
Getting ready
We require an up-and-running IIS 10.0 instance. Security components should be installed. You should have administrative privileges.
How to do it...
- Log in to Windows Server 2016 with an account with administrative privileges.
- Open Server Manager from the Start menu or use the search window to find it.
- Click on the Tools menu from
Server Manager
; you will find IIS Manager. Open it and click on theWIN2016IIS
IIS server. Go toFeatures view
and select Authorization Rules:

- Go to the
Actions
pane ofAuthorization Rules
. You have two options:Add Allow Rule...
andAdd Deny Rule...
, as shown in the following screenshot. Click onAdd Allow Rule...
:

- The following
Add Allow Authorization Rule
window pops up:

- Here, we can select one out of
All users
,All Anonymous users
, and Specified roles or user groups.
Next, you can select any specified...