防盗链
RewriteCond Host: (.+)
RewriteCond Referer: (?!http://\1.*).*
RewriteCond Referer: (?!http://(.*)(\.baidu\.com|\.google\.com|\.google\.com.hk|\.google\.cn|\.g\.cn|\.gougou\.com|\.soso\.com|\.sogou\.com|\.youdao\.com|\.bing\.com|\.yahoo\.com|\.yahoo\.cn|\.sohucs\.com|\.sina\.com.cn)).*
RewriteRule (/file/upload/|/template/|/skin/).*\.(?:gif|jpg|jpeg|png|bmp|css|swf|flv) /block.gif [I,O,N]
上述规则是仿盗链规则
RewriteCond Referer: (?!http://(.*)(\.baidu\.com|\.google\.com|\.google\.com.hk|\.google\.cn|\.g\.cn|\.gougou\.com|\.soso\.com|\.sogou\.com|\.youdao\.com|\.bing\.com|\.yahoo\.com|\.yahoo\.cn|\.sohucs\.com|\.sina\.com.cn)).*
此段代码是排除这些网站。
请问如何 只 指定这个xxx.com网站的盗链,其他的都不管。
举例
RewriteCond referer: (?!http://(.*)(\.seowhy\.com)).*
本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/38551.html
