禁用大陆ip段

https://www.ip2location.com/free/visitor-blocker

有 .htaccess web.config等

若是iis

打开C:\Windows\System32\inetsrv\config\applicationHost.config

 <location path="www.surveybuy.com">
        <system.webServer>
            <security>
                <ipSecurity allowUnlisted="true">
              <clear/>
          <add ipAddress="xx.xx.xx.xx" subnetMask="xx.xx.xx.xx" allowed="true"/>
              <add ipAddress="218.30.53.128" subnetMask="255.255.255.128"/>
                </ipSecurity>
            </security>
        </system.webServer>
    </location>

内加入允许和拒绝的ip

 记得把允许的ip放前面

猜你喜欢

转载自www.cnblogs.com/wintersoft/p/10678873.html
今日推荐