Set the HTTP ``REFERER`` header correctly.