Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (55 sloc) 1.87 KB


FuelPHP is a simple, flexible, community driven PHP web framework.

Firewall in Fuel Framework


Use PHP Composer:

composer require shieldon/shieldon

Or, download it and include the Shieldon autoloader.

require 'Shieldon/autoload.php';



1. Before initializing Core

In your fuel/app/bootstrap.php, after this line:

require COREPATH.'bootstrap.php';

Add the following code:

| Run The Shieldon Firewall
| Shieldon Firewall will watch all HTTP requests coming to your website.

if (isset($_SERVER['REQUEST_URI'])) {

	// Notice that this directory must be writable.
	// We put it in the `fuel/app/tmp` directory.
    $firewallstorage = __DIR__ . '/tmp/shieldon';

    $firewall = new \Shieldon\Firewall($firewallstorage);

2. Define a Route for Firewall Panel.

Now, modify your fuel/app/config/routes.php and add the following code.

'firewall/panel' => function () {
    $firewall = \Shieldon\Container::get('firewall');
    $controlPanel = new \Shieldon\FirewallPanel($firewall);

That's it.

You can access the Firewall Panel by /firewall/panel, to see the page, go to this URL in your browser.

The default login is shieldon_user and password is shieldon_pass. After logging in the Firewall Panel, the first thing you need to do is to change the login and password.

Shieldon Firewall will start watching your website if it get enabled in Deamon setting section, make sure you have set up the settings correctly.

You can’t perform that action at this time.