You can temporarily rename (or delete) the /wp-content/nfwlog/cache/bf_conf.php script used by the login protection.
Thank you for your reply.
If I delete the php file will the Ninja and WordPress login forms work normally as before?
It will delete the firewall “Login Protection” configuration. Rename it instead and see if that solves the problem. WordPress won’t be affected.
By renaming I am able to login to WordPress. But the Ninja firewall login page did not load. How can I get it to work again?
You’ll need to reconfigure it, or restore the bf_conf.php script.
How do I restore the bf_conf.php script?
Rename it back to bf_conf.php and check if it works. If it doesn’t work, try to reconfigure the login protection. If it still doesn’t work, make sure you didn’t install a plugin lately that messes with PHP sessions.
Renaming didn’t work. Did not install any plugin that affects php.
Which part of login protection do I need to configure?
-If NinjaFirewall is disabled, can you log in?
-Try to enable the PHP error log in your WordPress wp-config.php:
Search for: define('WP_DEBUG', false);
Replace with: define('WP_DEBUG', true);
Also, add this line below: define( 'WP_DEBUG_LOG', true );
The error log (if any) will be located in “/wp-content/debug.log”.
The Login Protection does not seem to be the problem, if you renamed it and that didn’t solve the issue, it is not related to it. You could rename the file back to bf_conf.php to restore your configuration.
-Which plugins and theme are installed on that blog?
-See also this discussion: https://ww.wp.xz.cn/support/topic/brute-force-protection-enabled-unable-to-login/
-Can you try to log in with another browser or from another device?
-
This reply was modified 6 years, 7 months ago by
nintechnet.
Yes, I can login after disabling Ninja.
The plugins are the same when Ninja was working normally. No new plugins have been added.
Anyway I have managed to resolve the issue after removing certain session lines in the php.ini.