# Open m3u8 user agent

**URL:** <https://community.wowza.com/t/open-m3u8-user-agent/54566>\
**Category:** Wowza Streaming Engine\
**Created:** [January 31, 2020, 9:36pm UTC](https://community.wowza.com/t/open-m3u8-user-agent/54566 "2020-01-31T21:36:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed\_ramadan](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mohamed\_ramadan](https://community.wowza.com/u/mohamed_ramadan)\
**Post date:** [January 31, 2020, 9:36pm UTC](https://community.wowza.com/t/open-m3u8-user-agent/54566/1 "2020-01-31T21:36:09Z")

</div>

Hi, how can you play a file m3u8 protected file with user agent?

---

<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:** [February 3, 2020, 7:02pm UTC](https://community.wowza.com/t/open-m3u8-user-agent/54566/2 "2020-02-03T19:02:18Z")

</div>

Are you trying to determine the user agent before you grant access to the stream @mohamed ramadan? Or are you asking where to set the user agent? Can you please provide more details?

Here are the security options you have for source authentication or playback access:

[https://www.wowza.com/docs/media-security-overview](https://www.wowza.com/docs/media-security-overview)

If you are trying to set the user agent:

We use the user agent as set in the JVM when Wowza starts up. You can change this via the http.agent property, for example in conf/Tune.xml by adding the following VMOption

-Dhttp.agent=myagent

---

<div class="post-metadata">

**Author:** ![mohamed\_ramadan](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mohamed\_ramadan](https://community.wowza.com/u/mohamed_ramadan)\
**Post date:** [February 4, 2020, 12:12pm UTC](https://community.wowza.com/t/open-m3u8-user-agent/54566/3 "2020-02-04T12:12:39Z")

</div>

Internet players do not support user agent such as jwplayer and protected links cannot be turned on

---

<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:** [February 4, 2020, 6:38pm UTC](https://community.wowza.com/t/open-m3u8-user-agent/54566/4 "2020-02-04T18:38:56Z")

</div>

As you already stated, the problem is that most players use JavaScript or some variety of api call to play a stream so although technically they do come from a browser the call they make to the m3u8 or chunks does not contain the user agent string.

So, you would need to use a security token then @mohamed ramadan to protect the content and control who gets access to view the stream.

[https://www.wowza.com/docs/security-options-in-wowza-streaming-engine#securetoken-playback-protection](https://www.wowza.com/docs/security-options-in-wowza-streaming-engine#securetoken-playback-protection)

Be sure to click on [how to add the token to JW Player](https://www.wowza.com/docs/how-to-add-securetoken-protection-to-jw-player) since you mentioned that.
