问:<rule name="rule144" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{HTTP_REFERER}" pattern="www.hnyiyinxiangsi.com" />
</conditions>
<action type="AbortRequest" />
</rule>
,这段代码是什么意思呢
答:您好,屏蔽来自域名www.hnyiyinxiangsi.com的访问,非常感谢您长期对我司的支持!
问: <rule name="band ip" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="%{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}&%{HTTP_X_Real_IP}" pattern="(127.0.0.1|58.211.2.)" />
<add input="%{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}&%{HTTP_X_Real_IP}" pattern="(127.0.0.1|127.0.0.1)" />
</conditions>
<action type="AbortRequest" />
</rule>
我这段代码写屏蔽ip,这样写对不对
答:您好,对的,但中间屏蔽ip添加到一行即可,不用写两行,非常感谢您长期对我司的支持!
<add input="%{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}&%{HTTP_X_Real_IP}" pattern="(127.0.0.1|58.211.2.|127.0.0.1|127.0.0.1)" />