# Add query params to \*.ts urls inside hls playlist.m3u8

**URL:** <https://community.wowza.com/t/add-query-params-to-ts-urls-inside-hls-playlist-m3u8/36606>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [May 30, 2013, 1:50pm UTC](https://community.wowza.com/t/add-query-params-to-ts-urls-inside-hls-playlist-m3u8/36606 "2013-05-30T13:50:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Zalesov](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@Alexander\_Zalesov](https://community.wowza.com/u/Alexander_Zalesov)\
**Post date:** [May 30, 2013, 1:50pm UTC](https://community.wowza.com/t/add-query-params-to-ts-urls-inside-hls-playlist-m3u8/36606/1 "2013-05-30T13:50:52Z")

</div>

Hello. We are using different CDNs (EdgeCast Akamai) for caching HLS output. And we want every client to be authorised on CDN for each request with a token. CDN have mechanisms to decide wether to allow or deny access to the file for the user according to a token (expiry date, credentials). It makes us be aware of that the user got the access to media from us but not on his own.

All tokens can be generated in wowza for each time segment inside playlist.

**Is there a way to add it as a query parameter to each time segment url inside playlist.m3u8 file?** Like that

#EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:1

#EXTINF:10.0,

media\_1.mp3?3a01f059bf10d94159527d18f106

#EXTINF:10.0,

media\_2.mp3?94159527d18f1063a01f059bf10d

#EXTINF:10.0,

media\_3.mp3?0d94159527d18f1063a01f059bf1

#EXTINF:10.0,

media\_4.mp3?0d94159527d18f1063a01f059bf1

#EXTINF:10.0,

media\_5.mp3?4159527d18f1063a01f059bf10d9

#EXTINF:10.0,

media\_6.mp3?59bf10d94159527d183a01f0f106

#EXTINF:10.0,

media\_7.mp3?3a01f0597d18fbf10d9415952106

---

<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:** [May 31, 2013, 8:25pm UTC](https://community.wowza.com/t/add-query-params-to-ts-urls-inside-hls-playlist-m3u8/36606/2 "2013-05-31T20:25:42Z")

</div>

With HTTP Origin enabled, Wowza cannot be involved in client authentication or access control. That all must be done between the client and CDN. Wowza creates chunks, the CDN pulls them into its cache, then the client streams from the CDN cache. So Wowza is not aware of the clients streaming from the CDN cache.

Richard
