PHP code example of moonpie / think-ipblock
1. Go to this page and download the library: Download moonpie/think-ipblock 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/ */
moonpie / think-ipblock example snippets
composer
// route/app.php
Route::get('should protect by ip-block')
->middleware(\Moonpie\Tp6Tools\IpBlock\Middleware\IpBlock::class);