Script help with CSF - how to temporarily unblock IPs

Posted by sharmaine1111, 04-22-2009, 11:12 PM
Hello I'm trying to create a script or WHM plugin with permissions where resellers will have an ability to temporarily allow an IP address (mirror CSF's "ALLOW IP" function). I am not sure though how to do this. I have checked with CSF if its possible or if i can hire them to do such script but they won't help. Can someone from this forum help me? Any help is greatly appreciated. Thank you very much in advance.

Posted by DigitalLinx, 04-22-2009, 11:36 PM
I'm not sure about WHM, but you can add your resellers to the sudoers lists to be able to execute csf and iptables, however it's dangerous and I wouldn't recommend it since they can basically block the entire server. Another solution would be to setup a custom php page that accepts the IPs to be temporary allowed and saves then in a file then have a cron script running as root that does csf -a $IP, other than that I'm out of ideas.

Var dette svaret til hjelp?

 Print

Les også disse

how to start only 1 player at the time?

Posted by bambinou, 11-09-2012, 07:08 PMHello, I would like to know if there is a way to have...

PHP - check if file exists on a remote server

Posted by Gigaron, 01-16-2008, 03:08 AMI have my static files duplicated and spread over multiple...

WordPress sitemap plugin problem or no ?

Posted by SimonDevise, 11-06-2012, 05:25 AMI have use WordPress sitemap plugin 2-3 month, but I...

let ppl play an mp3 but not let them access the file

Posted by bambinou, 11-10-2012, 09:32 AMHi, I have a folder with many mp3s, I do not want...

How-To: PHP bbCode Function // Intermediate

Posted by JustinSmall, 09-21-2008, 03:49 PMIt wouldn't let me post this is the tutorial section,...