Security of site on sever

丁丁大魔王 81 Reputation points
2021-11-24T16:03:25.46+00:00

I want to allow some specific users to access my site but I don't know their IP. So it seems that IP restriction module doesn't suit for me.

I want a feature to authen users. I can provide username and password for them. My problem is should I develop this feature on code? Is there anyway that IIS can do this for me?(IIS should allow me to custom users)

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Bruce Zhang-MSFT 3,736 Reputation points
    2021-11-25T02:15:30.733+00:00

    Hi @丁丁大魔王 ,

    You can use windows authentication to allow specific users to access site.
    152444-1.jpg

    If you want to custom user accounts, you can create them in computer management.
    152433-2.jpg

    Open Local Users and Groups -> Users, Right click to add New User. Just enter user name and password. Then you can provide this account for users who you want to allow them.
    152451-3.jpg


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,686 Reputation points
    2021-11-24T21:21:59.31+00:00

    the only out of the box security IIS supports is windows. you create windows logins and set the folder hosting the site security. then enable windows security for the site.

    you can also build a simple asp.net site that has authentication and a database of users.

    0 comments No comments