programming-examples/asp/More_Code_Snippets/Ban a user based on their IP address.asp

8 lines
178 B
Plaintext
Raw Permalink Normal View History

2019-11-18 14:25:58 +01:00
<%
Dim bannedIP = Request.ServerVariables("REMOTE_ADDR")
'this is the IP to ban here
If bannedIP = "100.100.100.100" Then
Response.Redirect ("banned.php")
End If
%>