- 论坛徽章:
- 0
|
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> |
|