in reply to blocking last ip octet
why don't you log it to STDERR or something.. grep it out.. the logs have timestamp and ip by default
# cat /var/log/apache/error-log maybe?