Forum Moderators: phranque
here is what I do.
[webmasterworld.com...]
you can also set up an ISAPI filter. Don't ask me how though :)
Save file as global.asa and save it on your root. You can only have one global.asa per IIS web site instance. Make sure noone else in your website folder has one or they can collide.
<script language="vbscript" runat="server">
sub Session_OnStart
dim remote_host
remote_host = request.ServerVariables("REMOTE_HOST")
If remote_host = IP of offender
Then Response.Redirect("http://www.yahoo.com")
End If
end sub
</script>
I can't say for certain if this will work. I would test it first out of production.
Global.asa can do some funky stuff. It can stay in memory after one execution and you need a restart to free it up. It may need a restart just to work. Be careful. I don't want you to go down. Do some google searches on global.asa to make sure you understand that it effects everything.
[webmasterworld.com...]
just remember to be careful. I don't want to see you have to restart or have any down time. Let me know how it goes.