Update IIS 6 IP Restrictions using command line
问题 I found the command line below that is used to add IP addresses to restrict in IIS 7 appcmd set config /section:ipsecurity /+"[ipaddress='10.0.0.1',allowed='false']" Is there an equivalent command for IIS 6? Thanks! 回答1: No, there's no built-in Windows command to do it. You can find evidence of scripts that people have written to mitigate for this. Ultimately, you want to modify a metabase entry called IPSecurity . Here's the thing: this IPSecurity entry can be set up at the top level (W3SVC