I am new with ASP.NET and MVC2 and I am wondering how can I determine if a user has traversed through one of my web application folders. For example, the URL in the address bar is
localhost:some numbers/Images/Others/model1.jpg
and the page displays the image. Instead of displaying the image, I want to close or block the page (if that is possible).
(Please edit this if necessary if my terminology is wrong.)
Finally, note that I tried HttpContext.Current.Request.Url
and Request.ServerVariables["URL"]
but neither returns want I want.