April 22, 2008
Write ASP and need a way to block IP’s from your site?
By Martyn in Hosting, Programming | 0 comments
This demonstrates how to ban a single IP address, later, I’ll show how to ban whole networks but chances are you will be able to work that out for yourself anyway after reading this anyway.
If global.asa does not exist then create it and add the following:
sub session_onstart
ip = request.servervariables("Remote_Addr")
select case ip
[...]
email this | tag this | digg this | trackback | comment RSS feed