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.

War diese Antwort hilfreich?

 Artikel drucken

Lesen Sie auch

Call Script that Deletes Logs after Stats Run Manually?

Posted by thewird, 01-15-2008, 02:04 AMI'm trying to create a script to archive logs for 7 days...

URL Rewrite

Posted by beachcompcom, 03-08-2010, 04:34 PMHi folks, I'm new to IIS7/Url rewrites. Im trying...

Script PHP to check links automatically - backlink checker

Posted by JaneP, 10-22-2012, 12:08 PMHello forum Sometimes it is necessary to check every time...

Alabanza Alternative?

Posted by AaronBrown, 09-29-2001, 10:45 AMI have heard bad things about alabanza, and i was...

Wildcard Question

Posted by Greedisgood, 07-06-2007, 08:47 AMHi, I was wondering if an expert could confirm if...