Location: PHPKode > scripts > Firewall Protection > example.configscript.php
<?php

include 'Firewall.php';

// Start firewall.
$firewall = new Firewall('firewallconfig.xml');


try{

    // When finished setting settings you will need to run the firewall with the run() method.
    $firewall->run();

    $firewall->printSettings();
}catch(Exception $e){
    die("You are not allowed at this place.");
}
?>
Return current item: Firewall Protection