Search code examples
flashadobeflash-media-server

Flash Media Server, how to use allowedHTMLdomains.txt on 2nd app


I am configuring our Adobe Flash Media Server 3.5 and need some help.

I have carefully followed the documentation on how to duplicate the vod service: http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773cfae-7ff3.html

I successfully created multiple applications: vod2, vod3, vod4.

Now I would like to use allowedHTMLdomains.txt and allowedSWFdomains.txt to restrict which domains can play video.

I have changed the 2 files:

allowedHTMLdomains.txt contains only this:

purple.mydomain.com

allowedSWFdomains.txt contains only this:

purple.mydomain.com

Then restarted Adobe Flash Media Server.

Next I created a web page on a totally different server, banana.myotherdomain.org and used this embedded code to place a video on the page:

<embed 
 height="377" width="640" 
 allowscriptaccess="always"
 allowfullscreen="true"  
 src="http://purple.mydomain.com/swfs/jwplayer.swf"
 flashvars="&streamer=rtmp:/vod2&file=testfile.flv" 
/>
</embed>

But it doesn't restrict anything.

I can still stream video from domains which are not specified in the allowed files.

What am I missing here?

Thanks,

Jeff


Solution

  • You should probably restrict access to "http://purple.mydomain.com/swfs/jwplayer.swf" on your first server, refusing requests from other domains. My guess is that since the swf is actually hosted on purple, this is the domain that FMS checks.

    Check out .htaccess on your server.