PHP code example of overflowsith / firewall

1. Go to this page and download the library: Download overflowsith/firewall 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/ */

    

overflowsith / firewall example snippets


App::before(function($request)
{
    if (Firewall::isNotAllowed($request->ip())) {
        return Firewall::renderAccessDenied();
    }
});

   '127.0.0.1',
   '192.168.*',