mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
14 lines
219 B
PHP
14 lines
219 B
PHP
<?php
|
|
|
|
class IpRestrictMiddleware extends \Pecee\Http\Middleware\IpRestrictAccess {
|
|
|
|
protected $ipBlacklist = [
|
|
'5.5.5.5',
|
|
'8.8.*',
|
|
];
|
|
|
|
protected $ipWhitelist = [
|
|
'8.8.2.2',
|
|
];
|
|
|
|
} |