Improved referer handling for comment and contact verification.