Well, since you are on your localhost. Just connect to your database in question (phpMyAdmin, Terminal, etc). And either change the status to 1 or delete where mask = '127.0.0.1' and type = 'host' on table 'access'.
For example,
UPDATE {access} SET status = 1 WHERE mask = '127.0.0.1' AND type = 'host';
DELETE FROM {access} WHERE mask = '127.0.0.1' AND type = 'host';
If you used table prefixes, substitute {access} with prefix_access
If not, just remove the curly braces.
Our server randomly banned its own IP today, no clue how it happened. Anyways, just wanted to say thanks, this was exactly the problem! Any ideas what would trigger something like this?
Hi there
Thanks Mr. Craig for your post.
I got a solution to solving my problem based on your response!
of course I'm using Drupal 7.22 and it doesn't have "access" table but I found tow tables with names: "blocked_ips" and "flood" that they consisted of "127.0.0.1" IP address to be blocked. I delete their contents and my problem solved.
I just want to post my experience to others. This problem happened when :
" I made a module with "hook_node_access" function and adjusted some permissions for this module and I didn't use "Clear Cache" finally. Then I logged out and logged in with other username to check status of developed module. But Drupal showed some errors in front of page. I didn't remember to these messages and logged in with Admin user again and Druapl showed "Sorry, 127.0.0.1 has been banned." error message on explorer. I think, it occurred because I didn't clear cache when I changed module table and permission too.
If there is a master Drupal developer on this topic, give us more details about this our problem.
Thanks for everybody
and absolutely no clue where this may come from.
Even when changing the error message in bootstrap.inc it still says "Sorry, 127.0.0.1 has been banned."
Please, please elaborate someone on how to track down this error.
Thanks!
Comments
Well, since you are on your
Well, since you are on your localhost. Just connect to your database in question (phpMyAdmin, Terminal, etc). And either change the status to 1 or delete where mask = '127.0.0.1' and type = 'host' on table 'access'.
For example,
UPDATE {access} SET status = 1 WHERE mask = '127.0.0.1' AND type = 'host';
DELETE FROM {access} WHERE mask = '127.0.0.1' AND type = 'host';
If you used table prefixes, substitute {access} with prefix_access
If not, just remove the curly braces.
-Craig Jackson
-Web Developer
remote server variant
Hi TapocoL,
Is this also possible on a remote server?
I have tried to insert a line in the access table setting aid value 1, mask value (my ip address) type value host and status value 1.
But I still get the "Sorry, xxx.xxx.xxx.xxx has been banned" message.
kind regards,
Marcel
This happened on a Linode VPS
This happened on a Linode VPS I have. only a single site was affected. I ran the sql command below to fix (thanks TapocoL).
Wish I know why it happened. That's the first time I've seen it in almost 4 years of Drupal Dev.
Our server randomly banned
Our server randomly banned its own IP today, no clue how it happened. Anyways, just wanted to say thanks, this was exactly the problem! Any ideas what would trigger something like this?
Sorry, 127.0.0.1 has been banned. on Drupal 7
Hi there
Thanks Mr. Craig for your post.
I got a solution to solving my problem based on your response!
of course I'm using Drupal 7.22 and it doesn't have "access" table but I found tow tables with names: "blocked_ips" and "flood" that they consisted of "127.0.0.1" IP address to be blocked. I delete their contents and my problem solved.
I just want to post my experience to others. This problem happened when :
" I made a module with "
hook_node_access" function and adjusted some permissions for this module and I didn't use "Clear Cache" finally. Then I logged out and logged in with other username to check status of developed module. But Drupal showed some errors in front of page. I didn't remember to these messages and logged in with Admin user again and Druapl showed "Sorry, 127.0.0.1 has been banned." error message on explorer. I think, it occurred because I didn't clear cache when I changed module table and permission too.If there is a master Drupal developer on this topic, give us more details about this our problem.
Thanks for everybody
Exactly the same error
and absolutely no clue where this may come from.
Even when changing the error message in bootstrap.inc it still says "Sorry, 127.0.0.1 has been banned."
Please, please elaborate someone on how to track down this error.
Thanks!
I have the same error, no
I have the same error, no idea where it comes from..
First I thought my site is hacked because of drupageddon, but i found not any malcode
Drupal User Group Munich
Fixed
Faced with a problem. Decided. I went to the phpmyadmin in table blocked_ips, found and removed from the field 127.0.0.1
Drupal itself get blocked =)
antiden * coderteam.ru
In Drupal 7, blocked_ips
In Drupal 7, blocked_ips table is used to store a list of banned IP addresses.
You can try truncating blocked_ips table.
TRUNCATE TABLE blocked_ipsCheers
Dinesh Waghmare (LAMP)
UK, Surrey | India, Mumbai
Web Development | Digital Media Marketing | Strategic Consulting
--
m: +91 9867888266
(Drupal / Wordpress / SugarCRM )
Don't Truncate whole table
Don't truncate whole table blocked_ips.
just delete the row with '127.0.0.1' if you found.
Best Regards,
Sanjay
skype:er.sanjaysoni
I sloved by change settings.php
because I use nginx proxy. hope help this link.
https://www.karelbemelmans.com/2015/04/reverse-proxy-configuration-for-d...