I was trying to use this on my master page, and it never lets the page load. Any ideas?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim strHostName As String = System.Net.Dns.GetHostName()
Dim clientIPAddress As String = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString()
If clientIPAddress = "##.##.##.##" Then
Response.Redirect("noaccess.aspx")
End If
End Sub ...
Go to the complete details ...