Wowza Community

httpCupertinoStreamingSession.getReferrer(); mean c-referrer: (url)


I want to Control access to Apple HLS streaming by referrer link with the Wowza Streaming Engine Java API.
Link :

I would like to know ,
String referrer = httpCupertinoStreamingSession.getReferrer(); mean
C-referrer in wowza log ?

This is from our Java reference docs:

As fas as where you actually pull that info, I will confirm and reply shortly.

Did you get it figured out @Silencer? Were you able to find the referrer in onConnect?

@Silencer I too am working with this in a custom module. I was able to get the below code to work without too much issue. I am also retrieving additional values for different security checks and logging requirements as well as looping over the querystring values and parsing them out. Be certain your set your correct JRE, otherwise it will not work, I think we are targeting 8.0?

public void onHTTPCupertinoStreamingSessionCreate(HTTPStreamerSessionCupertino httpSession) {

String subjectDN = httpSession.getHTTPHeader(“subject_dn”);
String issuersDN = httpSession.getHTTPHeader(“issuer_dn”);
String myReferer = httpSession.getHTTPHeader(“referer”);
String queryStr = httpSession.getQueryStr();
String sessionId = httpSession.getSessionId();
DateTimeFormatter dtf = DateTimeFormatter.ofPattern(“yyyy/MM/dd HH:mm:ss”);
LocalDateTime now =;

String wowzatokenstarttime = “”;
String wowzatokenendtime = “”;
String wowzatokenhash = “”;

getLogger().info(“onHTTPCupertinoStreamingSessionCreate: User:” + subjectDN + “, issuersDN:” + issuersDN + “, referer:” + myReferer + ", queryStr: " + queryStr + ", date: " + dtf.format(now));