Avatar
Tim S.
Hi mikeb, Thanks for posting your question. I'm more than happy to assist you. The code to check to see if the IP address is banned is handled in the /includes/bootstrap.inc file. You can edit the message in the code in the file to whatever you'd like. Here's the code snippet to look for in that file:

/** * Handles denied users. * * @param $ip * IP address to check. Prints a message and exits if access is denied. */ function drupal_block_denied($ip) { // Deny access to blocked IP addresses - t() is not yet available. if (drupal_is_denied($ip)) { header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden'); print 'Sorry, ' . check_plain(ip_address()) . ' has been banned.'; exit(); } }

Notice, the line:

print 'Sorry, ' . check_plain(ip_address()) . ' has been banned.';

You simply need to edit this line to whatever you'd like the banned IP address message to be. If you need further assistance please feel free to contact us. Thanks! Tim S