programming-examples/asp/More_Code_Snippets/Ban a user based on their IP address.asp
2019-11-18 14:25:58 +01:00

8 lines
178 B
Plaintext

<%
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
%>