apache防盗链设置
# 防盗链配置RewriteEngine On
RewriteCond %{HTTP_REFERER} !^https://www.abc123.cn/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.abc123.cn$ [NC]
RewriteCond %{HTTP_REFERER} !^https://abc123.cn/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://abc123.cn$ [NC]
RewriteRule .*\.(gif|jpg|swf)$ https://www.abc123.cn/test.png [R,NC]
最后更新:2017-11-16 14:34:18