and also a note.. banning a specific IP wont block a lot of people as there are people who are on dialup or dont have a static IP on broad band.. so all they would do is disconnect and reconnect and their IP is now different.....
what i do is "mask" it a bit... for example:
Dim strBanList 'Pipe delimited list of banned IP ranges
Dim strUserIP
strBanList = '208.123.12|23.12.12.3|205.121'
strUserIP = Request.ServerVariables("REMOTE_HOST")
For each item in Split( strBanList, "|" )
if Left( strUserIP, Len(item) ) = item then
Response.Redirect("/somefolder/error.asp")
end if
Next
And i also take the route of not flat out telling someone they are "banned", i make it seem like something is wrong with the site