mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
5946397c15
- Request: optimized getIp method and reversed the order so proxy is always checked first.
14 lines
231 B
PHP
14 lines
231 B
PHP
<?php
|
|
|
|
class IpRestrictMiddleware extends \Pecee\Http\Middleware\IpRestrictAccess {
|
|
|
|
protected array $ipBlacklist = [
|
|
'5.5.5.5',
|
|
'8.8.*',
|
|
];
|
|
|
|
protected array $ipWhitelist = [
|
|
'8.8.2.2',
|
|
];
|
|
|
|
} |