IIS防盗链

 

<rules>
    <clear/>
    <rule name="iis_security">
        <match url="^.*\.(jpg|jpeg|gif|png|js|css.zip.rar|xlsx|xls|doc|docx|mp3|mp4)$" ignoreCase="true"/>
        <conditions>
            <add input="{HTTP_REFERER}" pattern="://upfile.cdlyh.cn/.*" negate="true"/>
            <add input="{HTTP_REFERER}" pattern="://(.*).hnxxb.cn/.*" negate="true"/>
            <add input="{HTTP_REFERER}" pattern="://(.*).servicewechat.com/.*" negate="true"/>
        </conditions>
        <action type="Rewrite" url="/404.htm"/>
    </rule>
</rules>

 

servicewechat.com 是针对微信小程序不做防盗链处理的域名。
posted @ 2021-08-25 17:17  赵瑛  阅读(131)  评论(0编辑  收藏  举报

版权所有 © 2022 沅来是澧

如果有程序开发、网站建设等需求的请联系我,QQ:47419233