if (!HttpContext.Current.Request.IsLocal)
{
Response.Status = "403 Forbidden";
Response.End();
}
More Related Contents:
- Can some hacker steal a web browser cookie from a user and login with that name on a web site?
- What are all the user accounts for IIS/ASP.NET and how do they differ?
- What is the App_Data folder used for in Visual Studio?
- How serious is this new ASP.NET security vulnerability and how can I workaround it?
- X-Frame-Options Allow-From multiple domains
- Asp.net Identity password hashing
- Viewing localhost website from mobile device
- Session Fixation in ASP.NET
- How to restrict folder access in asp.net
- Redirect to a page with endResponse to true VS CompleteRequest and security thread
- How to Customize ASP.NET Web API AuthorizeAttribute for Unusual Requirements
- Cannot use a leading ../ to exit above the top directory
- Form Authentication – Cookie replay attack – protection
- Is there a way to keep a page from rendering once a person has logged out but hit the “back” button?
- Why do ASP.NET JSON web services return the result in ‘d’?
- Web authentication state – Session vs Cookie?
- Redirect URL (ASP.NET)
- How to stop ASP.NET from changing IDs in order to use jQuery
- What is default hash algorithm that ASP.NET membership uses?
- NameValueCollection to URL Query?
- JQuery’s $ is in conflict with that of StringTemplate.Net in ASP.Net MVC
- How to login and then download a file from aspx web pages with R
- “This operation requires IIS integrated pipeline mode.”
- How to get Visual Studio ‘Publish’ functionality to include files from post build event?
- Error Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
- aspnet_compiler finding wrong version of System.Web.WebPages 1.0.0.0 instead of 2.0.0.0
- aspx.designer.cs how does it work?
- Session_End does not fire?
- Block requests after multiple unsuccessful logins
- Pass a user defined object to ASP.NET Webmethod from jQuery, using JSON