PHP code example of riverside / php-waf

1. Go to this page and download the library: Download riverside/php-waf library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

riverside / php-waf example snippets


    
    $waf = new \Riverside\Waf\Firewall();
    $waf->run();
    

$ curl -sS https://getcomposer.org/installer | php

$ php composer.phar install 
apacheconfig
    php_value auto_prepend_file "/path/to/waf.php"
    

    fastcgi_param PHP_VALUE "auto_prepend_file=/path/to/waf.php";