Is there a way in asp.net to limit the access to a web page only from localhost?
if (!HttpContext.Current.Request.IsLocal) { Response.Status = "403 Forbidden"; Response.End(); }
2.1m questions
2.1m answers
60 comments
57.0k users