referrer conditional for live and dev sites