appcmd管理IIS 7 IP地址限制
清除IP地址限制规则appcmd clear config "default web site" -section:system.webserver/security/ipSecurity /delete:true /commit:apphost
设置默认限制规则为限制所有接入
appcmd set config "default web site" -section:system.webserver/security/ipSecurity /allowUnlisted:false /commit:apphost
设置某个IP地址为允许接入
appcmd set config "default web site" -section:system.webserver/security/ipSecurity /+"" /commit:apphost
页:
[1]