# Restrict WebRTC to IP addresses

**URL:** <https://community.wowza.com/t/restrict-webrtc-to-ip-addresses/92347>\
**Category:** Wowza Video (Formerly Streaming Cloud)\
**Tags:** webrtc, security\
**Created:** [November 15, 2020, 11:22am UTC](https://community.wowza.com/t/restrict-webrtc-to-ip-addresses/92347 "2020-11-15T11:22:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benoit\_Heintz](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Benoit\_Heintz](https://community.wowza.com/u/Benoit_Heintz)\
**Post date:** [November 15, 2020, 11:22am UTC](https://community.wowza.com/t/restrict-webrtc-to-ip-addresses/92347/1 "2020-11-15T11:22:41Z")

</div>

Hi,  
Is there a way to restrict access to viewers when using WebRTC and Wowza **Cloud**? (for example, restriction on IP address)

I managed to make a restriction for HLS playback, but there is a latency of about 12 seconds (too big for my service), where with the WebRTC player it’s less than 1 second.

Thanks

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 16, 2020, 5:41pm UTC](https://community.wowza.com/t/restrict-webrtc-to-ip-addresses/92347/2 "2020-11-16T17:41:45Z")

</div>

This is a great question @Benoit_Heintz, but with Cloud being based on a CDN, the secure token isn’t applied for webrtc browser playback.

WebRTC is encrypted Cloud, but blocking viewers is likely more complicated and not supported at this time through Wowza Cloud.

IP blocking is offered through Wowza Streaming Engine for WebRTC.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 16, 2020, 5:47pm UTC](https://community.wowza.com/t/restrict-webrtc-to-ip-addresses/92347/3 "2020-11-16T17:47:51Z")

</div>

I suggest you reach out in our Hire a Consultant forum if you’d like some potential help building a custom module for restricting users. Hope you find a solution for your needs.

---

<div class="post-metadata">

**Author:** ![Benoit\_Heintz](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Benoit\_Heintz](https://community.wowza.com/u/Benoit_Heintz)\
**Post date:** [November 17, 2020, 4:36pm UTC](https://community.wowza.com/t/restrict-webrtc-to-ip-addresses/92347/4 "2020-11-17T16:36:47Z")

</div>

OK, thank you for the reply
