Hi I have a code which I have placed in my page
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender,EventArgs e)
{
if(!IsPostBack)
{
string ip = "192.168.1.55";//the restrictive ip
if (Page.Request.UserHostAddress.Equals(ip))
{
Response.Redirect("Error.aspx");
}
}
}
}
But would like to know if and how I can add more ip address,
ie
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender,EventArgs e)
{
if(!IsPostBack)
{
string ip = "192.168.1.55";//the restrictive ip
or
string ip = "192.168.1.56";//the restrictive ip
...
Go to the complete details ...