# restrict streaming based on ip

**URL:** <https://community.wowza.com/t/restrict-streaming-based-on-ip/37892>\
**Category:** Wowza Streaming Engine\
**Created:** [December 21, 2011, 4:05am UTC](https://community.wowza.com/t/restrict-streaming-based-on-ip/37892 "2011-12-21T04:05:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![asim\_khan](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@asim\_khan](https://community.wowza.com/u/asim_khan)\
**Post date:** [December 21, 2011, 4:05am UTC](https://community.wowza.com/t/restrict-streaming-based-on-ip/37892/1 "2011-12-21T04:05:45Z")

</div>

how can i only play a live stream from 1 ip address

like each live stream will have a ip address and and that live stream will only play if it is requested from that ip

or if i can restrict the application to specific ip address and all streams under that will follow the restrictions

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [December 21, 2011, 12:26pm UTC](https://community.wowza.com/t/restrict-streaming-based-on-ip/37892/2 "2011-12-21T12:26:52Z")

</div>

Hi

You can use a Hotlink denial module

Hotlink is found here,

[https://www.wowza.com/docs/how-to-combat-hotlinking-your-adobe-flash-swf-file](https://www.wowza.com/docs/how-to-combat-hotlinking-your-adobe-flash-swf-file)

IP override here,

[https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip](https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip)

Jason

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 21, 2011, 2:53pm UTC](https://community.wowza.com/t/restrict-streaming-based-on-ip/37892/3 "2011-12-21T14:53:27Z")

</div>

This might be what you are looking for:

[https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip](https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 21, 2011, 2:55pm UTC](https://community.wowza.com/t/restrict-streaming-based-on-ip/37892/4 "2011-12-21T14:55:36Z")

</div>

Also,

[https://www.wowza.com/docs/how-to-control-access-to-http-streams-cupertinostreaming-sanjosestreaming-smoothstreaming-mpegdashstreaming](https://www.wowza.com/docs/how-to-control-access-to-http-streams-cupertinostreaming-sanjosestreaming-smoothstreaming-mpegdashstreaming)

[https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2)

[https://www.wowza.com/docs/how-to-do-user-authentication-for-flash-rtmp-client-using-jdbc-connection-to-mysql-database](https://www.wowza.com/docs/how-to-do-user-authentication-for-flash-rtmp-client-using-jdbc-connection-to-mysql-database)

Richard

---

<div class="post-metadata">

**Author:** ![asim\_khan](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@asim\_khan](https://community.wowza.com/u/asim_khan)\
**Post date:** [December 21, 2011, 5:15am UTC](https://community.wowza.com/t/restrict-streaming-based-on-ip/37892/5 "2011-12-21T05:15:12Z")

</div>

Thanks

i want to stream live content to only allowed users

the live stream is in RTMP , HTTP and RTSP

how can i configure to protect these streams with username and password

like in .net i can send username password when i receive a valid response from wowza then i redirect the users to these streams

how can i do that ?

i read this [[https://www.wowza.com/docs/how-to-secure-apple-http-live-streaming-aes-128-external-method](https://www.wowza.com/docs/how-to-secure-apple-http-live-streaming-aes-128-external-method) ] for http but is there any way i can it for all the streams ?

i will not use any flash player just redirect the devices to the stream URL and the devices will play it natively

but before i do that i want to show control who can see the stream and who can’t and also if some one just copies the stream they will not be able to play it

---

<div class="post-metadata">

**Author:** ![asim\_khan](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@asim\_khan](https://community.wowza.com/u/asim_khan)\
**Post date:** [December 22, 2011, 12:32pm UTC](https://community.wowza.com/t/restrict-streaming-based-on-ip/37892/6 "2011-12-22T12:32:15Z")

</div>

all these examples require that i have the wowza on the same server

is there any way i can connect from an external server and send a username ,password or secure token and get back a response from wowza like a session id and then redirect the user to stream url with sessionid to play the stream on their device natively please note i will not be using any flash player

Thanks

---

<div class="post-metadata">

**Author:** ![asim\_khan](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@asim\_khan](https://community.wowza.com/u/asim_khan)\
**Post date:** [December 22, 2011, 1:02pm UTC](https://community.wowza.com/t/restrict-streaming-based-on-ip/37892/7 "2011-12-22T13:02:39Z")

</div>

i think i found what i was looking for

[https://www.wowza.com/docs/how-to-add-a-web-service-interface-to-wowza-media-server-and-integrate-with-net-dotnet](https://www.wowza.com/docs/how-to-add-a-web-service-interface-to-wowza-media-server-and-integrate-with-net-dotnet)

is there any more info on this ? like per-built web services that can be consumed via .net

what i have described above can be achieved by interfacing ?
