免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2243 | 回复: 2
打印 上一主题 下一主题

[Web] 求apache 如何防视频wmv的盗链 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-07 12:17 |只看该作者 |倒序浏览
SetEnvIfNoCase Referer "^http://(.*).abc.com" local_ref=1
SetEnvIfNoCase Referer "\-" local_ref=1
SetEnvIfNoCase Referer " " local_ref=1
<FilesMatch "\.(gif|jpg|wmv|swf|asf|rm)">
    Order Allow,Deny
    Allow from env=local_ref
</FilesMatch>


这是根据referer来防盗链的,但是我看apache日志发现我在页面里面的内嵌wmv文件的时候访问根本不产生referer.
222.221.245.90 - - [07/Sep/2006:12:08:19 +0800] "GET /game/egao/gf.wmv HTTP/1.1" 206 266 "-" "RMA/1.0 (compatible; RealMedia)"
222.46.58.164 - - [07/Sep/2006:12:08:18 +0800] "GET /game/egao/lutianhuanyi.wmv HTTP/1.1" 200 974470 "-" "RMA/1.0 (compatible; RealMedia)"
222.46.58.164 - - [07/Sep/2006:12:08:20 +0800] "GET /game/egao/lutianhuanyi.wmv HTTP/1.1" 206 224 "-" "RMA/1.0 (compatible; RealMedia)"
222.221.245.90 - - [07/Sep/2006:12:08:19 +0800] "GET /game/egao/gf.wmv HTTP/1.1" 206 747516 "-" "RMA/1.0 (compatible; RealMedia)"
222.181.185.209 - - [07/Sep/2006:12:08:23 +0800] "GET /game/egao/lutianhuanyi.wmv HTTP/1.1" 200 974470 "-" "NSPlayer/11.0.5358.4827"
202.106.160.115 - - [07/Sep/2006:12:08:23 +0800] "GET /game/egao/findmykeys.wmv HTTP/1.1" 200 1477032 "-" "contype"
218.77.205.37 - - [07/Sep/2006:12:08:24 +0800] "GET /game/egao/lutianhuanyi.wmv HTTP/1.1" 200 974470 "-" "NSPlayer/10.0.0.3802"

这样的话根本防不住啊。


我的页面代码是这样的。
<OBJECT id=MPlayer10 style="WIDTH: 400px; HEIGHT: 300px" height=300 width=400 classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6><PARAM NAME="URL" VALUE="http://abc.com/game/olg/rxjhxcsp.wmv"><PARAM NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0"><PARAM NAME="currentPosition" VALUE="16.5259774"><PARAM NAME="defaultFrame" VALUE=""><PARAM NAME="playCount" VALUE="1"><PARAM NAME="autoStart" VALUE="-1"><PARAM NAME="currentMarker" VALUE="0"><PARAM NAME="invokeURLs" VALUE="-1"><PARAM NAME="baseURL" VALUE=""><PARAM NAME="volume" VALUE="50"><PARAM NAME="mute" VALUE="0"><PARAM NAME="uiMode" VALUE="full"><PARAM NAME="stretchToFit" VALUE="0"><PARAM NAME="windowlessVideo" VALUE="0"><PARAM NAME="enabled" VALUE="-1"><PARAM NAME="enableContextMenu" VALUE="-1"><PARAM NAME="fullScreen" VALUE="0"><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIFilename" VALUE=""><PARAM NAME="captioningID" VALUE=""><PARAM NAME="enableErrorDialogs" VALUE="0"><PARAM NAME="_cx" VALUE="10583"><PARAM NAME="_cy" VALUE="7938">
                                                    <embed
src="http://abc.com/game/olg/rxjhxcsp.wmv" width="400" height="300"  
autostart=0 loop=0 type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"
showcontrols=1 showdisplay=0 showstatusbar=1 autosize=1 visible=1
animationatstart=0 transparentatstart=0
url="http://abc.com/game/olg/rxjhxcsp.wmv"> </embed></OBJECT>

论坛徽章:
0
2 [报告]
发表于 2006-09-08 10:13 |只看该作者

论坛徽章:
0
3 [报告]
发表于 2006-09-09 08:09 |只看该作者
用captcha
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP