当前位置: 首页 > 帮助中心首页 > 云虚拟主机

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>



  • 微信客服

    扫码咨询微信客服

    注册、续费更优惠

    公告、活动先知晓

    享受一对一专属服务

  • 客服QQ

  • 手机APP

    扫我安装22APP

  • 小程序

    爱名网微信小程序

  • 客服电话

    全国客服热线

    400-660-2522

  • 公众号

    关注爱名网服务号