問:怎么手動部署屏蔽虛擬主機的IP段訪問,怎么屏蔽虛擬主機的IP
答:您好,
如果您是要在虛擬主機設(shè)置攔截某個ip段的訪問,可以參考http://www.shinetop.cn/faq/list.asp?unid=681 設(shè)置;非常感謝您長期對我司的支持!
問:比如我要限制127.0.0..0.0.1 這中間的IP段需要怎么設(shè)置
答:您好,查看您有2個windows系統(tǒng)的虛擬主機,如要設(shè)置限制上面的ip段,可參照教程設(shè)置www/web.config規(guī)則如下即可,非常感謝您長期對我司的支持!謝謝!
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="band ip" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="%{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}&%{HTTP_X_Real_IP}" pattern="(182.101.18.)" />
</conditions>
<action type="AbortRequest" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>