<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 是针对微信小程序不做防盗链处理的域名。