Remove the IP from the Cphulk bruteforce protection using command line

Hello Readers 🙂

Sometime We can not login to the cpanel or any other panel, email account, webmail, outlook because your local IP address may be blocked into the servers firewall. You can remove it from the WHM panel. Also you can remove it from the Command line by running the database queries.

I have write a script for those who want to remove the IP from the brute force without editing the Mysql database.

================

#vi mysql.sh

Add the below code into the file :

#!/bin/bash
mysql -u root cphulkd<<EOFMYSQL
delete from logins;
delete from brutes;
EOFMYSQL

=================

chmod x+a mysql.sh

Run this file using

#sh mysql.sh

That’s it. It will remove all the IPs from the blacklist.

If anybody have queries then please comment on it.

 

Regards,

Shital Sakhare

Leave a comment