Author Topic: unlock ip  (Read 1385 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
unlock ip
« on: August 24, 2023, 11:10:29 AM »
Is there any option to unlock ips from other server via api?
Like in cPanel from https://server:2087/cgi/configserver/csf.cgi?action=kill&ip=XXX.XXX.

Or any option to be able unlock one ip from whmcs, or similar?

Offline
*****
Re: unlock ip
« Reply #1 on: December 13, 2023, 07:03:42 PM »
Add the IP address to your whitelist:
/etc/csf/csf.allow

Command line example:
Code: [Select]
sudo csf -a 192.168.1.111

Offline
*
Re: unlock ip
« Reply #2 on: September 30, 2024, 08:04:24 AM »
I mean some option to unlock ips from php. For ex, from whmcs module

Offline
***
Re: unlock ip
« Reply #3 on: September 30, 2024, 12:29:41 PM »
CWP doesn't have API calls for CSF to manage firewall rules, blocked/allowed IPs.

Offline
*
Re: unlock ip
« Reply #4 on: September 30, 2024, 01:53:25 PM »
You could use PHP by doing similar to
https://forum.configserver.com/viewtopic.php?t=6751
Not recommending but might help.