How to password protecting url in IIS

ali zarezadeh 1 Reputation point
2022-01-04T10:24:41.053+00:00

I want to set username and password to some URLs in iis. i tried to use basic authentication to password protecting url but i couldn't. I'm using asp.net MVC and i have an area with some controllers

for exp, i want to set password for

example.com/sec/

and

example.com/test/test

that

/test/

is a controller in area. how can i create own username and password and set them for some URLs

and how can i enable basic authentication for area directories

Windows development Internet Information Services
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.