简体   繁体   中英

Allow access to website (API) only from certain domain in IIS

Given two websites:

  • a.com is a public website and can be accessed by anyone.
  • b.com is an API and can be accessed only from a.com domain.

How to restrict direct access to b.com in IIS?

In IIS you have feature called IP Address and domain restrictions. You can use same for what you want to achieve. There you can specify either specific IP or domain to allow/deny access.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM