Forum Moderators: phranque

Message Too Old, No Replies

htaccess embedded video

         

croky

5:19 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



Hi,

I've got a website/server which domain is for example
domain-a.com

every html, image files is stored on the domain-a.com site/server.

all my videos are stored on a seperate server
domain-b.com

I want to use embedded wmv files from domain-b.com on domain-a.com with hotlink protection on.

But when I turn hotlink protection on, on domain-b.com it doesn't load, I did put [domain-a.com...] and [domain-a.com...] to the allow list.

Because of that I can direct link to the wmv file on domain-b.com but it doesn't seem to work in embedded mode.

It only works when I Allow direct requests to files on domain-b.com but then everyone can use the video files on their servers in embedded mode.

Anyone knows an solution?

croky

5:20 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



This is the example of what I mean with embedded mode on the site/domain-a.com

<object id="NSPlay"
codebase="http://www.microsoft.com/netshow/download
/en/nsmp2inf.cab#Version= 5,1,51,415"
type="application/x-oleobject" height="285"
standby="Loading Microsoft Media Player
components..." width="320"
classid="CLSID:2179C5D3-EBFF-11CF-B6FD-00AA00B4E220
"/><param name="FileName"
value="http://domain-b.com/video.wmv"><param
name="ShowControls" value="true"/><param
name="AnimationAtStart" value="true"/><param
name="ShowDisplay" value="true"/><param
name="ShowStatusBar" value="true"/><param
name="AutoSize" value="true"/>
<embed
width="340"
src="http://domain-b.com/video.wmv"
height="285" showstatusbar="false"
type="video/x-ms-asf-plugin" showcontrols="true"
showdisplay="false" animationatstart="true"
pluginspage="http://www.microsoft.com/netshow/downl
oad/player.htm"> </embed></object>

irishaff

6:24 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



Would placing the link to the video inside an iframe do the trick,, would the server with video then think a session or whatever is being created on the site it hosts?

David

croky

12:29 am on Feb 12, 2005 (gmt 0)

10+ Year Member



Thanks for the tip, I have thought about it too but didn't tried it out yet, I will test it now u also seems to have the same idea :)