apache
<IfModule mod_rewrite.c> RewriteEngine On #Block domain RewriteCond %{HTTP_REFERER} www.abc.com [NC] RewriteRule ^(.*)$ -[F] </IfModule>
iis7及以上版本
nginx<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="屏蔽访问"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_REFERER}" pattern="www.abc.com" ignoreCase="true" /> </conditions> <action type="AbortRequest" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
if ($http_referer !~* "www.abc.com|^$") { return 444; }
亲爱的:被墙域名跳转TG:@qianhenetwork QQ:851617266,可否收藏+评论+分享呢?
文章评论 本文章有个评论