Forum Moderators: open

Message Too Old, No Replies

Parsing a text file to ban IPs

         

Marketing Guy

3:17 pm on Oct 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Scratch the request - found a Mod for the forum software! :)

God bless freeware! :D

Scott

Zigire

2:10 pm on Oct 14, 2003 (gmt 0)

10+ Year Member



The method I use is the following:

(place in your global.asa in root)


<SCRIPT LANGUAGE=VBScript RUNAT=Server>

Sub Session_OnStart

varbannedip = "100.100.100.100¦212.999.222.222" 'example

if InStr(varbannedip, Request.ServerVariables("REMOTE_ADDR")) > 0 then response.redirect("http://www.google.com")

End Sub

This bans the IP's from browing the site altogether