IP Banned Locally?

Permalink 1 user found helpful
Hello all

Not sure if this is the right forum for this particular issue but I just tried to log in to my dashboard this evening (i'm running my site locally at the moment) and when I put my login details in I got this message :

Unable to complete action: your IP address has been banned. Please contact the administrator of this site for more information.

What?!?!

I'm totally fresh to concrete5 so I have literally no idea what to do now. Do I have to reinstall?

Thanks

 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi pragmatic84,

I have not encountered this before, but here is something you can try if you are using version 5.7.

- create a concrete.php file in application\config
application\config\concrete.php
- paste this code into concrete.php
<?php
return array(
    'security' => array(
        'ban' => array(
            'ip' => array(
                'enabled'  => false,
            )
        )
    )
);
pragmatic84 replied on at Permalink Reply
Worked perfectly, thanks a bunch!
rrichey replied on at Permalink Reply
Same issue but that worked for me too!!! Thanks!!!
DeviantDeer replied on at Permalink Reply
DeviantDeer
Is there any downside to doing this? I have a fresh install too, but I added a theme to the project. When I went to login it says my password is wrong (I copied/pasted it from a file so I'm not sure how that happened). Anyway, now my IP is banned. After I am done with this site and hand it off to a client, is there anything wrong with this using this method or does it make them vulnerable?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@eriset

I would not recommend using this on a live site. I believe it would add a potential vulnerability.
mohammedfaqruddin replied on at Permalink Reply
mohammedfaqruddin
Hi MrKDilkington,

Can we use this code in live instance?

I have cleared the IP addresses from the table UserBannedIPs. But, just to make sure this issue is not encountered again.

Thanks,
Mohammed
imJack replied on at Permalink Reply
imJack
Hey thanks for this tip. This worked just great!
drbiskit replied on at Permalink Reply
drbiskit
Just had this happen, never seen it before... Couldn't get this config fix to work on a local site.

Managed to remove the IP ban by going to my database in phpMyAdmin, going to the table 'UserBannedIPs' and deleting the offending (+ only) row.
Siskiyou replied on at Permalink Reply
I am brand new to concrete5, and a beginner at installing and building websites on localhost. I tried this php file as well, but it did not work. After searching I found this solution in the documentation. I have concrete5 on my localhost with WAMP.
you can find it on the concrete5 site at
/documentation/how-tos/developers/i-cant-login/

The solution worked great. Now I am up and running again.
The basics are
1) when you can't login, send yourself an email from the "forgot password" link. (even though you are on a localhost,and even if you used a fake email address this works for this solution)
2) Open your PhpMyAdmin
3) click on your database
4) find and open the LOGS table
5) Even if you brilliantly setup concrete5 with a fake email, the message Concrete5 is trying to send will be logged here. Go ahead and look at the content of that email. There will be a link in it. Click that link.(or copy and paste the link in your browser)

Hope this helps someone else.
jamboray replied on at Permalink Reply
Thanks alot, saved my day. :)
chrislarueonline replied on at Permalink Reply
Where is my PhpMyAdmin? (sorry, VERY new to this)
MrKDilkington replied on at Permalink Reply
MrKDilkington
@chrislarueonline

phpMyAdmin should be available in your web host control panel.