修改host_allow.conf文件1234567891011121314RewriteEngine OnRewriteCond %{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_refSetEnvIfNoCase Referer ".*\.yourdomin\.com" local_refSetEnvIfNoCase Referer "^$" local_refOrder Allow,DenyAllow from env=local_ref