# HLS live stream -  Module access control

**URL:** <https://community.wowza.com/t/hls-live-stream-module-access-control/51928>\
**Category:** Wowza Developer Dojo\
**Created:** [September 11, 2018, 3:57pm UTC](https://community.wowza.com/t/hls-live-stream-module-access-control/51928 "2018-09-11T15:57:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuk\_nikolic](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@vuk\_nikolic](https://community.wowza.com/u/vuk_nikolic)\
**Post date:** [September 11, 2018, 3:57pm UTC](https://community.wowza.com/t/hls-live-stream-module-access-control/51928/1 "2018-09-11T15:57:52Z")

</div>

I would like to build a Java plugin for server which would help us overcome the only existing problem.

Currently multiple devices can access streaming with same token which should be prevented.

The goal is to allow only one device access per token. In order to do so I haven’t been able to find any Wowza Java docs which would lead me in the right direction. It would be helpful if I could do action when event of a client getting.m3u8 happens so I could prevent some of clients accessing the stream. Is this possible or do you have any other idea or suggestion for solving this issue?

---

<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:** [September 11, 2018, 9:43pm UTC](https://community.wowza.com/t/hls-live-stream-module-access-control/51928/2 "2018-09-11T21:43:54Z")

</div>

Hi @vuk nikolic, I’m checking into this for you.

---

<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:** [September 12, 2018, 3:43pm UTC](https://community.wowza.com/t/hls-live-stream-module-access-control/51928/3 "2018-09-12T15:43:25Z")

</div>

Have you looked this doc @vuk nikolic to see if any of these options will support your desired workflow?

**[https://www.wowza.com/docs/utility-modules-for-wowza-streaming-engine-media-server-software](https://www.wowza.com/docs/utility-modules-for-wowza-streaming-engine-media-server-software)**

Please let me know if it helped. Thanks!

---

<div class="post-metadata">

**Author:** ![vuk\_nikolic](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@vuk\_nikolic](https://community.wowza.com/u/vuk_nikolic)\
**Post date:** [September 12, 2018, 4:36pm UTC](https://community.wowza.com/t/hls-live-stream-module-access-control/51928/4 "2018-09-12T16:36:29Z")

</div>

I’ve reviewed everything, but I did not find the appropriate module.

I need instructions on how to execute method based on parameters from url on every onPlaylist (each time a client requests playlist.m3u8).

Something like in [https://www.wowza.com/docs/how-to-control-access-to-apple-hls-streaming-cupertinostreaming](https://www.wowza.com/docs/how-to-control-access-to-apple-hls-streaming-cupertinostreaming),

only that HTTPCupertinoStreamingSessionCreate occurs only the first time a client logs in, and i need every time a client requests a playlist.

---

<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:** [September 12, 2018, 5:08pm UTC](https://community.wowza.com/t/hls-live-stream-module-access-control/51928/5 "2018-09-12T17:08:00Z")

</div>

Ok, thank you for sharing that. You’ll need to submit a support ticket then for the engineers to take a look with you on how to execute that. Thanks @vuk nikolic.

**[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)**

---

<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:** [September 13, 2018, 6:22pm UTC](https://community.wowza.com/t/hls-live-stream-module-access-control/51928/6 "2018-09-13T18:22:49Z")

</div>

The engineers did share this info @vuk nikolic:

Secure Token can be configured to allow the token to be used for a single ip address but if you want to limit per protocol (same ip with different devices at the same time) then that isn’t possible with Secure Token.

If you want to add that functionality then you would basically need to roll your own custom token mechanism.
