Adds referrer and user agent from config