How can I customize the Banned IP message in Drupal 7?
2012-03-26 11:04 am EST
2012-03-26 11:22 am EST
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:
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.
Do you want to publish a tutorial to our support center?