Ip Blocked After Failed Login Attempt

Hi Guys,



I woke up this morning to seeing this posted on my admin login “The IP was blocked after 6 unsuccessful logins”



Now I am not able to login to my admin page. I am not even sure which version I have but sure it is 4 but not newest 4.



Can anyone help me to tell me how I can gain access to my admin? Thanks

Please temporary rename the app/addons/access_restrictions directory and log in the admin panel

I am not too sure where I find this file? Sorry I am not so good with the programming stuff, I usually have Joe take care of these things, but he is not looking like he is available right now. :-(

Found it and renamed it :-) Now is there anything I need to do to fix anything that I changed?

[quote name='milezone' timestamp='1435238618' post='220353']

Hi Guys,



I woke up this morning to seeing this posted on my admin login “The IP was blocked after 6 unsuccessful logins”



Now I am not able to login to my admin page. I am not even sure which version I have but sure it is 4 but not newest 4.



Can anyone help me to tell me how I can gain access to my admin? Thanks

[/quote]



In order to solve this issue please go to phpmyadmin in your Server Control panel and execute the following sql request


UPDATE cscart_addons SET `status` = 'D' WHERE addon = 'access_restrictions';



Then clear the cache , e.g. my_site.com/admin.php?cc.

CS_Market, ok I am in my php but have no clue where to even find this UPdate CS-Cart, or even how to execute it?



I did do the temp thing and change name of access_restrictions, and printed our daily orders, but now I seem to be missing many options in my admin? So after I printed orders, I changed it back, and waiting for a permanant fix

I found this, but I am not near a level of feeling comfortable even trying to attempt to do this as I am clueless how to execute. :-(

Well I tried to run that, seemed like ti worked and then cleared my browser history, but still cannot access?

[quote name='milezone' timestamp='1435240700' post='220369']

Well I tried to run that, seemed like ti worked and then cleared my browser history, but still cannot access?

[/quote]



Please check PM.

[quote name=‘milezone’ timestamp=‘1435239554’ post=‘220364’]

Found it and renamed it :-) Now is there anything I need to do to fix anything that I changed?

[/quote]



After the directory is renamed, the Access restrictions module is not used. So you can log in the admin panel. Then go to the Add-ons → Manage add-ons → Access restrictions page and disable the following setting:



Block IP after a number of unsuccessful attempts



Then just rename the directory back and enjoy. There is no need to make any changes in the database

After the directory is renamed, the Access restrictions module is not used. So you can log in the admin panel. Then go to the [b]Add-ons -> Manage add-ons -> Access restrictions page[/b] and disable the following setting:

[b]Block IP after a number of unsuccessful attempts[/b]

Then just rename the directory back and enjoy. There is no need to make any changes in the database

I really need to update and correct you guys on this topic. I have this issue right now that milezone had and I followed the same instructions but to no avail. Perhaps in our case the issue runs deeper and we are now on V4.6.3 SP1. Renaming did not do it for us, the issue still persists so I had to revert to this (temp) solution

http://forum.cs-cart.com/topic/30066-access-retrictions-blocked-admin-ip/#entry154492

having to comment out the following code

if ($restricted && (AREA != 'A' || $acc_r['admin_reverse_ip_access'] != 'Y')) {
	die((!empty($restricted['reason']) ? $restricted['reason'] : fn_get_lang_var('text_ip_is_blocked')));
} elseif (!$restricted && $acc_r['admin_reverse_ip_access'] == 'Y' && AREA == 'A') {
	die(fn_get_lang_var('text_ips_denied'));
}

in the func.php file located in the folder: app/addons/access_restrictions

And that is still a temp solution. Still looking for the root cause for the block.

PM me temporary access, we will check

PM me temporary access, we will check

A solution was provided by the CS Cart support desk and is what I used because I am using engintron (cpanel nginx) as a proxy

http://forum.cs-cart.com/topic/26235-my-admin-side-has-blocked-my-ip-help/page-2#entry291111

A solution was provided by the CS Cart support desk and is what I used because I am using engintron (cpanel nginx) as a proxy

http://forum.cs-cart.com/topic/26235-my-admin-side-has-blocked-my-ip-help/page-2#entry291111

Thank you for keeping us updated