By spinsheet on
We are hosting our own Drupal site in-house and I just tried to get to it from my machine and received the message 'Sorry, 172.16.7.18' has been banned'. I am the only admin on this site and I certainly did not ban my own IP address (or any address for that matter). Other people are getting to the site fine, it just seems to be me that is having trouble.
Any idea what automated process would ban my IP address and why? Where might I find the setting to un-ban my address?
Comments
Was it a Drupal message, or a
Was it a Drupal message, or a server message?
Contact me to contract me for D7 -> D10/11 migrations.
That I don't know. The
That I don't know. The message simply states
Sorry, 172.16.7.18 has been banned.I guess that it certainly could be a server message. I'm using LAMP on Ubuntu server. Any thoughts on how I might look into it on the server side (if it is not a Drupal message)?
Are you seeing that message
Are you seeing that message inside your Drupal theme, or on a white mostly unformatted screen?
Contact me to contract me for D7 -> D10/11 migrations.
A white, unformatted screen.
A white, unformatted screen. I assume that it is a server message then. Still have no idea why I am suddenly banned.
Sounds like a server issue.
Sounds like a server issue. Unless you have a Drupal script that is killing the whole process as the result of an IP block, but you would probably know if you had that. So it's most likely a server issue - contact your hosting company and ask them if they can fix it. They should be able to. Maybe you were trying to connect to the server with a device that retried too many times too fast with an incorrect password or something - servers will often automatically ban someone when this happens.
Contact me to contract me for D7 -> D10/11 migrations.
We have the server in house,
We have the server in house, it's our own. I disabled iptables but still cannot get it. I even gave myself a new IP address, got in, the 5 minutes later THAT IP address was banned. I have no idea what is going on. This is the first time that this has happened. The only thing that I am doing differently now is using the Quiz module, can't see how that is doing anything.
Try doing a search in your
Try doing a search in your entire site file system for 'has been banned'.
Contact me to contract me for D7 -> D10/11 migrations.
This is interesting. I went
This is interesting. I went to another computer, took the quiz that I created with the Quiz module, refreshed the browser upon completion, and was promptly banned from the site. Might there be something with that module that is hitting the server in such a way that is causing Apache (I assume that it is somehow Apache) to ban an IP address?
Figured it out. Somehow the
Figured it out. Somehow the setting to ban IP addresses of those that have completed the quiz was selected. I have no idea how this happened, I must have fat fingered that. Now I have to figure out a way to un-ban all of the IP address that got banned. I assume that that must be in Drupal somewhere as that is where the setting was to ban them in the first place (from within the Quiz module). Any thoughts on that? I'm running out of IP addresses here...
I found the entries in a
I found the entries in a database table and removed them, problem solved
It has already been answered
It has already been answered but I thought I would add to the comments for the purpose of others viewing this.
There is an IP address blacklist built into Drupal and checking the IP address is part of the bootstrap process. You can set custom headers to check for the IP address but even still the flexibility of the IP address blacklist functionality is very poor and shouldn't be used. If an IP address is banned, regardless of your settings, no theme will be displayed and only a simple error message.
Drupal has flood detection which could have lead to your IP address being banned.
ip blocking my own site
this is bizarre - it's happened on my site, before I got captcha which really took care of the original problem, I would ban spammers
from my site by selecting "cancel account and all content" from a user when I could verify they were spammers through outside spam detection site (get captcha, much easier) - but I would take the next step and ban the ip address given by the spam site.
One day I selected a user and chose "cancel account and all content", site reloaded and whammo little sign at the top on white screen "sorry ip address xx.xxx.xx.xxx has been banned" (my own IP) can't get in to fix it yikes!
So I got a free "hide IP" program, hid my own ip, was then able to log in and delete the IP (mine) from the banned IP list.
This never should have happened at all.
Went along fine, then one day tried to bulk delete about 10 identified spammers choosing "cancel account and all content"
whammo - I'm banned again only this time, ten times, went back, hid my IP, logged in as admin and manually deleted the 10 occurrences of my own IP address before I could get back in.
If anyone knows a way to permanently prevent this weird problem I'd be grateful. Captcha screens out most spammers but still I don't like having this problem at all, it tells me there's a coding glitch somewhere. Thanks in advance for help.
I was getting the "sorry ip
I was getting the "sorry ip address xx.xxx.xx.xxx has been banned" message, even though I was not connecting from that IP. Probably everybody was getting that message?
I found the row in the "access" table, deleted it and can now access the site again, weird...
My own IP being continually banned
I have got this same problem (Drupal 6) but the solutions described do not appear to work.
I can log in from my 3G IPad or from my work PC and delete the home IP address from the banned list but immediately I try to log in from the home IP the ban is reinstated. I cannot find a trigger that is causing this and it has only happened in the last couple of days.
Directly manipulating the access table in the database doesn't do it either. I can delete OK but on login from home IP address the ban is on again.
I've turned off all caching and cleared the caches
I can browse the site anonymously from the IP address but on attempting to login I get the IP address banned message.
Anyone got any ideas?
one solution ....
.... might be here https://www.drupal.org/node/2873579