This plugin blocks detected attackers or displays them a captcha to check they are not bots.
The IP Address Approval system provides an easy way for you to Allow or Block access to your website to protect your site from unwanted visitors.
Blocks failed attempted IPs in htaccess