Is it possible to make part of a site on IIS only viewable from localhost?

前端 未结 10 824
后悔当初
后悔当初 2020-12-15 05:19

We\'ve got a webserver running IIS. We\'d like to run maybe a shared blog or something to keep track of information. Because of security issues, we\'d like for that part to

10条回答
  •  被撕碎了的回忆
    2020-12-15 05:33

    You can grant or deny access to a site or folder from certain IPs to a site or folder. In IIS, go into properties for the site or folder in question.

    (1) Click to the "Diectory Security" Tab

    (2) Click Edit Under the "IP Address and Domain Name Restriction" frame.

    (3) Click "Denied Access" (This tells IIS to block every IP except those you list)

    (4) Click "Add..."

    (5) Click "Single Computer"

    (6) Enter 127.0.0.1 (the IP of localhost)

    Note that it is best to use an IP here (as I've described) rather than a domain name because domains can be easily forged using a hosts file.

提交回复
热议问题