The referrer is only included when the user clicks a link to the page. Viewing the page that checks the referrer by any other means (pasting the URL, redirecting, etc) will not pass a referrer, and thus HttpRequest.UrlReferrer will be null.