Setup user agent and referrer