你好,在IIS上配置就可以了。你在iis中选择你要配置的网站,右键单击选择属性,然后在Directory Security中有一个IP Adress and domain name restriction,在这个中进行配置即可。