問(wèn):需要設(shè)置限制指定ip 不能訪問(wèn),如何設(shè)置限制指定IP段不能訪問(wèn)網(wǎng)站
答:您好,http://www.shinetop.cn/faq/list.asp?unid=681 請(qǐng)參考這個(gè)說(shuō)明限制ip,非常感謝您長(zhǎng)期對(duì)我司的支持!
問(wèn):已經(jīng)裝了SSL部署的https的轉(zhuǎn)向在web.config 里了,如何再增加限制IP的代碼<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <rewrite> <rules> <rule name="301" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" ></match> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" ></add> </conditions> <action type="Redirect" url="https://www.txmzx.com/{R:1}" redirectType="Permanent" ></action> </rule> </rules> </rewrite> </system.webServer> </configuration>
答:您好,<rule></rule>這是一段完整的規(guī)則,同樣您只需要復(fù)制屏蔽ip的這段內(nèi)容,添加到</rule>后面保存就行了,非常感謝您長(zhǎng)期對(duì)我司的支持!