PHP code example of webparking / laravel-limited-access

1. Go to this page and download the library: Download webparking/laravel-limited-access 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/ */

    

webparking / laravel-limited-access example snippets


return [
    'block_ips' => [
        '192.168.1.0/24',
        '66.66.66.66', // 66.66.66.66/32 is equivalent
        '2000:ffff::1',
        '2000:ffff/64',
    ],

    'ignore_ips' => [
        '11.22.33.44',
        '10.0.0.0/8',
        '127.0.0.1',
        '::1',
    ],
];
shell script
php artisan vendor:publish --provider="Webparking\LimitedAccess\ServiceProvider" --tag="public"
shell script
php artisan vendor:publish --provider="Webparking\LimitedAccess\ServiceProvider" --tag="config"
shell script
php artisan vendor:publish --provider="Webparking\LimitedAccess\ServiceProvider" --tag="lang"
shell script
php artisan vendor:publish --provider="Webparking\LimitedAccess\ServiceProvider"