Thanks for the share 🙂
But I already know that. In my case I want to interact with WP Better Security to add a IP to the BAN list -> in .htaccess
regards,
Goto menu > Security > Ban Users > turn on the Enable Banned Users and put the IPs on Ban Hosts.
Before you put the IP there you should check it perhaps using whatismyipaddress.com/ip-lookup, because some of them might be web crawlers not bad bots.
You didn’t understood me. I know how to BAN IP Hosts from the Admin Panel.
What I want to do is to interact with this panel in my functions.php to automatically ban a IP when an action is triggered…