Breaking line in .htaccess
Posted on 2007-03-29
how can I break the link with this code? I tried to include \n but it doesn't work. The code will write to .htaccess file.
$ip = "deny from $REMOTE_ADDR\n" ;
$banip = '.htaccess';
$fp = fopen($banip, "a");
$write = fputs($fp, $ip);
.htaccess file output, it cannot break the line in between "deny from 18.104.22.168"
allow from all
deny from 22.214.171.124deny from 4126.96.36.199deny from 6188.8.131.52