北京 天津 河北 山西 内蒙古 辽宁 吉林 黑龙江 上海 江苏 浙江 安徽 福建 江西 山东 河南 湖北 湖南 广东 广西 海南 重庆 四川 贵州 云南 西藏 陕西 甘肃 青海 宁夏 新疆 台湾 香港 澳门
▼分网点

Window2008通过web.config进行限制ip访问

限制ip 访问 禁止访问的ip或者ip段

 

<security>

   <ipSecurity allowUnlisted="ture">

     <clear/>

       <add  ipAddress="127.0.0.1 allowed="true"/>

       <add  ipAddress="83.116.19.53 allowed="true"/>

       <add  ipAddress="83.116.119.0"  subnetMask="255.255.255.0" allowed="true"/>

       <add  ipAddress="83.117.0.0"  subnetMask="255.255.0.0" allowed="true"/>

       <add  ipAddress="83.0.0.0"  subnetMask="255.0.0.0" allowed="true"/>

   

    </ipSecurity>

</security>

 

 

永许ip访问  可以访问的ip或者ip段

 

<security>

   <ipSecurity allowUnlisted="false">

     <clear/>

       <add  ipAddress="127.0.0.1 allowed="true"/>

       <add  ipAddress="83.116.19.53 allowed="true"/>

       <add  ipAddress="83.116.119.0"  subnetMask="255.255.255.0" allowed="true"/>

       <add  ipAddress="83.117.0.0"  subnetMask="255.255.0.0" allowed="true"/>

       <add  ipAddress="83.0.0.0"  subnetMask="255.0.0.0" allowed="true"/>

   

    </ipSecurity>

</security>