http://www.codeproject.com/Articles/544289/Restricting-files-download-using-HTTP-Handler-base http://stackoverflow.com/questions/2737886/httphandler-redirect http://www.codeproject.com/Questions/669472/ASP-net-csharp-set-login-for-only-pdf-files-downlo <%if (HttpContext.Current.Request.Url.AbsolutePath == "gallery.aspx") {%>