londrum - 6:14 pm on Dec 31, 2012 (gmt 0)
maybe you could try something else. there's more than one way to block spammers.
there's a popular php script called "bad behaviour" that might help (and it's free too - just got to google it). it can log IP adresses into a database automatically too, if you set it up right.
there used to be a bot blocker script in the library somewhere at webmasterworld too but i cant find it. from memory, i think you could set it so anyone who requested pages too quickly would get automatically blocked.
anyone who grabbed one page every two seconds for ten seconds, for example, (or whatever you set it up as) would get automatically added to the banned list
those kind of scripts have an advantage in that they don't rely on you knowing the IP, or where they originally came from. because they block their behaviour