Quick way to enable URL Authorization of IIS on Windows 11

Authorize client access to the URLs that comprise a Web Application.

URL Authorization in IIS is a security mechanism that determines whether a user or group can access specific URLs or resources on a web application, based on predefined rules. The admin can define these rules. Consider a gatekeeper of an Apartment, how he checks the identity of every visitor entering the apartment, and decides whether to allow them or not depending on the apartment association rules, the same way, URL Authorization uses information like usernames or roles to enforce predefined rules ensuring that only authorized users can view the sensitive pages or files of a web application. This article will navigate the steps of How to Enable URL Authorization for Internet Information Services on Windows 11 using simple yet clear steps. Check out: Enable Basic Authentication for IIS on Windows 11.

Key Steps:

  • To Enable this feature on Windows 11, we will use Windows Features.
  • To access Windows Features, open Run and execute the following command. appwiz.cpl
  • On the Programs and Features window, click on Turn Windows Features on or off from the left pane.
  • Windows Features dialog will open now. Locate Internet Information Services and expand the tree.
  • Then, expand World Wide Web Services.
  • Finally, expand Security.
  • Now, you can find URL Authorization. Click on the checkbox to enable it. Click OK.

Directions to reach URL Authorization in IIS on Windows 11

Directions to URL Authorization for IIS on Windows 11
Directions to URL Authorization for IIS on Windows 11
Open Programs and Features using appwiz.cpl
Open Programs and Features using appwiz.cpl
Turn Windows Features on or off
Turn Windows Features on or off
Expand IIS Tree
Expand IIS Tree
Expand World Wide Web Services
Expand World Wide Web Services
Expand Security
Expand Security
Enable URL Authorization for IIS on Windows 11
Enable URL Authorization for IIS on Windows 11
Windows Searching for the required files
Windows Searching for the required files
Applying changes
Applying changes
Windows has completed the changes
Windows has completed the changes

URL Authorization for IIS Feature availability on various Windows Editions

This section provides information on the availability of this feature on different Windows Editions.

Windows EditionsAvailability
Windows 11 HomeYes
Windows 11 ProfessionalYes
Windows 11 EducationYes
Windows 11 EnterpriseYes
Windows 11 Pro EducationYes
Windows 11 SENo
Windows 11 IoT EnterpriseYes

Key Features of URL Authorization

URL Authorization Key Features
URL Authorization Key Features

The key features of URL Authorization in IIS include access control based on users or roles, seamless integration with authentication methods like Windows Authentication, Forms Authentication, and Digest Authentication, and the ability to define rules at the server, site, or file level. Admins can define these rules on the web.config file. This feature provides flexible management and integrates with Active Directory for enterprise user and role management.

Sample Code for incorporating URL Authorization on web.config file

(configuration)
(system.web)
(authorization)
(allow roles="Admins" /)
(deny users="*" /)
(/authorization)
(/system.web)
(/configuration)

In this above block, the code grants access only to users in the “Admins” role while blocking all others.

NOTE
In the above example, we have used () paranthesis to avoid conflicting with the HTML code <> paranthesis.

Take away

URL Authorization for IIS on Windows 11 provides an effective way to control who can access specific resources on your web application. By configuring simple rules based on user roles or groups, you can easily secure sensitive content. If you have any queries, do let us know in the comment section. For more interesting articles, stay tuned to Winsides.com. Happy Coding! Peace out!

Exit mobile version