Control Web Panel
Security => CSF Firewall => Topic started by: setecabanas 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?
-
Add the IP address to your whitelist:
/etc/csf/csf.allow
Command line example:
sudo csf -a 192.168.1.111
-
I mean some option to unlock ips from php. For ex, from whmcs module
-
CWP doesn't have API calls for CSF to manage firewall rules, blocked/allowed IPs.
-
You could use PHP by doing similar to
https://forum.configserver.com/viewtopic.php?t=6751
Not recommending but might help.