How can I customize the Banned IP message in Drupal 7?
Category: Drupal
I was reading your article http://www.inmotionhosting.com/support/website/drupal/blocking-a-specific-ip-address-in-drupal and was wondering how you could customize the message “Sorry, 141.0.10.182 has been banned.” I'm a web developer and would like to customize that message. Do you know how?
OTHER ANSWERS
|
0
|
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: /** 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 |
Like this Question?
Tweet
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent QuestionsNeed more Help?
Search
Ask the Community!
Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.
Current Customers
| Chat: | Click to Chat Now | E-mail: | support@InMotionHosting.com |
|---|---|---|---|
| Call: | 888-321-HOST (4678) | Ticket: | Submit a Support Ticket |


