\n";
$host_rule .= "\t\n";
$host_rule .= "\t\tRequire all granted\n";
$host_rule .= "\t\tRequire not env DenyAccess\n";
$host_rule .= "\t\tRequire not ip $host\n";
$host_rule .= "\t\n";
$host_rule .= "\n";
$host_rule .= "\n";
$host_rule .= "\tOrder allow,deny\n";
$host_rule .= "\tAllow from all\n";
$host_rule .= "\tDeny from env=DenyAccess\n";
$host_rule .= "\tDeny from $host\n";
$host_rule .= "\n";
}
require_once( ITSEC_Core::get_core_dir() . '/lib/class-itsec-lib-config-file.php' );
$result = ITSEC_Lib_Config_File::append_server_config( $host_rule );
if ( is_wp_error( $result ) ) {
return false;
}
return true;
}
}