Results 1 to 10 of 10

Thread: Restrict the domain that a specific stream is allowed to play

  1. #1

    Default Restrict the domain that a specific stream is allowed to play

    We have a specific client that uses flash media encoder (h264) and wants to stream to one specific domain only.

    He doesn't want someone to steal the link and add it on another player (like jwplayer on another domain).

    + he wants to do this for different stream names like this:

    Stream name: stream1 -> ONLY plays on domain1.com
    Stream name: stream2 -> ONLY plays on domain2.com
    Stream name: stream3 -> ONLY plays on domain3.com

    (note: all these streams run from the same server)

    Can this be done? Is there already a module that does exactly this or do we have to hire a wowza programmer to do it?

    Cheers,
    Savvas

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    The Hotlink denial module allows you to lock an application to only play from a particular domain but I think it could be modified to lock a stream.

    Here's the link
    http://www.wowza.com/forums/content....Flash-SWF-file

    Jason

  3. #3
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Wowza has to run on one domain, so you can't really use Wowza this way. (You can restrict what domain or IP you accept rtmp streams from.)

    Take a look at the MediaSecurity Addon, ModuleRTMPAuthenticate. This is the best way to limit encoder access to a live Wowza application.
    http://www.wowza.com/forums/content....RTMP-and-RTSP)

    Richard

  4. #4

    Default

    Thank you for the reply!

    We want to limit the domain that is allowed to PLAY the stream, not the IP that the encoder sends the stream.

    We use Amazon EC2 Wowza Instance, so most probably by only using the code below this will work (have to try it now):

    <Property>
    <Name>domainLock</Name>
    <Value>localhost,mysite.com</Value>
    </Property>
    <Property>
    <Name>AllowEncoder</Name>
    <Value>Wirecast</Value> <!--FM, Wirecast-->
    </Property>

    Now, if we want different stream names to be allowed to ONLY PLAY on a different domains, can this be done?

    Stream name: stream1 -> ONLY plays on domain1.com
    Stream name: stream2 -> ONLY plays on domain2.com
    Stream name: stream3 -> ONLY plays on domain3.com

  5. #5
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    Let us know how you get on and if you are successful in locking a stream to a domain/multiple domains.

    Jason

  6. #6

    Default

    Hi again!

    It's working great now, we just added wms-plugin-collection.jar, in the folder: /usr/local/WowzaMediaServer/lib of the EC2 instance.

    Then, above module Name: ModuleRTMPAuthenticate this:

    <Module>
    <Name>Hotlink Denial</Name>
    <Description>Hotlink Denial Module</Description>
    <Class>com.wowza.wms.plugin.collection.module.ModuleHotlinkDenial</Class>
    </Module>

    and in the properties:

    <Property>
    <Name>domainLock</Name>
    <Value>localhost,*domain.com</Value>
    </Property>
    <Property>
    <Name>AllowEncoder</Name>
    <Value>FM, Wirecast</Value> <!--FM, Wirecast-->
    </Property>


    It simply reject everyone that tries to embed the link or player somewhere else.

    Now, if we want to restrict streams to specific domains, can this be done on the same server without coding?

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Take a look at this example:

    http://www.wowza.com/forums/content....-by-IP-address

    Richard

  8. #8

    Default

    Thank you rrlanham, that is a good solution but we don't want to handle IP whitelisting/blacklisting.

    Can the Hotlink denial module work per stream name?

    So when we add this code, can we associate it only with a specific stream name?

    <Property>
    <Name>domainLock</Name>
    <Value>localhost,*domain.com</Value> <------------ We want this to ONLY work when someone streams from FME etc with the stream name stream1 (so, we don't want this to work when someone streams from any other stream name other than stream1).
    </Property>

  9. #9
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Hotlink denial limits what domain a Flash RTMP client (swf) that connects to your server can be served from, so that won't do what you want. You said you want to restrict by domain, I think what I pointed to will do that.

    Richard

  10. #10

    Default

    Thank you Richard!

    We just wanted to know if there is a way to do this using the simple setup with xml files + module.

Similar Threads

  1. Play livestream from a particular domain
    By nkkrishna in forum Wowza Streaming Engine in the Cloud
    Replies: 1
    Last Post: 09-03-2014, 09:54 AM
  2. Restrict the streaming(client) to specific domain
    By roshpr in forum General Forum
    Replies: 4
    Last Post: 04-03-2013, 06:50 AM
  3. How to play a video at a specific time?
    By divyat in forum Video On Demand Streaming Discussion
    Replies: 10
    Last Post: 11-17-2012, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •