By paulcoghlan on
Using the Access Rules feature I have banned a number of IP addresses that have been involved in a dubious number of page hits in a short period of time.
The current message "Sorry, xxx.xxx.xxx.xxx has been banned." is a tad draconian for my liking and I would like to offer the potentially innocent party the ability to contact me via email.
Where can I make a change to alter this message? I have done some searches but cannot find it anywhere.
Many thanks,
Comments
Off the top of my head I
Off the top of my head I don't know the answer but I couldn't even begin to point you in the proper direction as you didn't bother to tell us what version of drupal you're using and the answer will most likely change depending on that.
Ignoring the snippy attitude
Ignoring the snippy attitude for a moment I simply forgot to include the version as opposed to 'not bothering' to.
I am running Drupal 6.20
Amazing
I'm amazed at how quickly people will point out what they feel is a breach of etiquette when they didn't bother to first understand the etiquette of the medium they are using.
Tips for posting to the Drupal forums #5 clearly states:
I will forgive your lack of due diligence and proper etiquette and I'll even play "Sherlock Holmes" for you because I'm actually a fairly nice guy.
The answer:
You can't without hacking the core.
The Details:
A host ban is processed during the bootstrap phase of the core initialization. This is the 2nd executed line of code in index.php. The 1st line being the include for the bootstrap file. The text displayed onscreen is hard coded there and un-translatable. The reason it can not be translated is that, at this point in the system initialization, the t() function is not yet available. So unfortunately the message is what it is and not configurable.
Now here's the thing. Banning an IP, to use your words, is "Draconian" in the first place. Since many, many users out there are on dynamic ip addresses, doing so potentially bans a different user in the future unintentionally. I have never heard it suggested that this action be taken lightly or without a really good reason. Deactivating a user seems to me a better solution and one that would give you more control over things like messages posted to said user.
/snippy_attitude -off
On a side note
/snippy_attitude -on
My detective work took me an extra 20 min because you put "This IP address has been banned" in the title of your post instead of the actual message "Sorry, xxx.xxx.xxx.xxx has been banned." Once again a little forum posting etiquette on your part would have saved us both some time.
/snippy_attitude -off
I clearly stated the exact
I clearly stated the exact message in the body of the post so the additional 20 minutes could have easily been saved.
Nevertheless will move on to find it elsewhere.
You really need to chill out a little. A simply mistake on my part, I apologize for the felonious act, you would think I drowned a baby or something...
If only you had ignored my post due to the lack of Drupal version you would have saved us both a little time.
"move on to find it elsewhere"?
"move on to find it elsewhere"? "ignored your post"? I provided you the answer, it's the only answer there is. If you think I took all that time to give you false information, then by all means go waste your time trying to prove me wrong, I don't care. Had you ignored what you "felt" was a snippy attitude, and yourself chilled out, by someone DONATING time to you we would not have had to go down most of this path, just because your little feelings got bruised.