Preventing User access

This could be extremely useful if you had someone you wished to ban from your website . For example bulletin boards are often plagued with comedians and characters well if you get their IP address then it is easy to ban them with a script like this

<%
Dim bannedIP = Request.ServerVariables("REMOTE_ADDR")
'this is the IP to ban here this isnt a real one (I hope)
If bannedIP
= "100.100.100.100" Then
Response.Redirect ("banned.php")
End If
%>

You could even store the banned addresses (if you had more than one) and then check the database when someone entered the page or logged in.

Sponsors