Change user_agent to referrer to detect chrome flash player

Chrome does not send the user agent for flash, use the referrer to detect if it is a swf making the request.