修改host_allow.conf文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^https://baidu.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://baidu.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.baidu.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.baidu.com$ [NC]
RewriteRule .*.(gif|jpg|swf)$ yun_qi_img/nolink.png [R,NC]


SetEnvIfNoCase Referer "^http://.*\.yourdomin\.com" local_ref
SetEnvIfNoCase Referer ".*\.yourdomin\.com" local_ref
SetEnvIfNoCase Referer "^$" local_ref

Order Allow,Deny
Allow from env=local_ref