I see.
Here's a quick one-liner:
make_error("BANNED!") if(grep { $_ eq $ENV{REMOTE_ADDR} } read_array("ban.txt"));You could of course make the $_ eq $ENV{REMOTE_ADDR} test more clever if you wanted IP ranges. wakautils.pl has a convenient dot_to_dec() function for converting IP addresses to integers, which would help with that.