zeromax 发表于 2018-12-8 09:34:55

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]
查看完整版本: appcmd管理IIS 7 IP地址限制