让apache上的图片或其他文件有防止盗链的功能

让apache上的图片或其他文件有防止盗链的功能


######## 防盗链Preventing Image 'Theft' ########

SetEnvIfNoCase Referer "^http://www.zggo.com/" local_ref=1
SetEnvIfNoCase Referer "^http://www.uie.cn/" local_ref=1
SetEnvIfNoCase Referer "^http://www.znh.com/" local_ref=1
SetEnvIfNoCase Referer "^http://www.ynjob.net/" local_ref=1

SetEnvIfNoCase Referer "-" local_ref=1
######## Allow the LOGO image Theft ##########
SetEnvIf Request_URI "/images/logo(.)+" local_ref=0

<FilesMatch "/.(png|gif|jpg|mp3|wma|rar|mid|Wma|rmvb)">
Order Allow,Deny
Allow from env=local_ref
</FilesMatch>

 

你可能感兴趣的:(让apache上的图片或其他文件有防止盗链的功能)