The company I work for has their own Flash based video player and the question I get from our execs is “Can we tell what website our player is embedded on?”
At first, I hypothesized I could use Apache mod_rewrite, extract the HTTP_REFFER, and append it to the end of the requested URL. So as the browser gets http://…/viewer.swf, I could slap on ?ref=otherdomain.com
However, I don’t think our CDN will cater to our htaccess file. Plus, mostly all the access_log entries show a dash rather than the domain.
So I’m casting this question our here to see if I catch any ideas or solutions. Currently, everything points to ‘not possible’.
I was able to devise a method of obtaining referrer using mod_rewrite. The question below is in relation to method. Basically, by using rewrite rules I can grab the referrer then redirect to the actual SWF with an appended query string.
Is it possoble to obtain the hostname only from HTTP_REFERER with mod_rewrite?