title: Close or block page if user traverses through a web application folder using MVC2
body: <p>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 </p>
  
  <blockquote>
    <p>localhost:some numbers/Images/Others/model1.jpg</p>
  </blockquote>
  
  <p>and the page displays the image. Instead of displaying the image, I want to close or block the page (if that is possible).</p>
  
  <p>(Please edit this if necessary if my terminology is wrong.)</p>
  
  <p>Finally, note that I tried <code>HttpContext.Current.Request.Url</code> and <code>Request.ServerVariables["URL"]</code> but neither returns want I want.</p>