Forum Moderators: coopster
$ip = "\r\n$REMOTE_ADDR" ;
$banip = '/etc/apf/deny_hosts.rules';
$fp = fopen($banip, "a");
$write = fputs($fp, $ip);
fclose($fp);
it doesn't works, any solution? Thanks alot
Or how can I exec the command below. I can't use exec() because of host security issue so it there another way to exe this command?
$apfDeny = "/usr/local/sbin/apf -d $REMOTE_ADDR";
[edited by: eelixduppy at 6:51 pm (utc) on April 3, 2007]
[edit reason] obfuscated IP [/edit]