-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
36 lines (29 loc) · 1.01 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
NAME
Plack::Middleware::IPAddressFilter - Simple IP address access control
middleware
SYNOPSIS
use Plack::Builder;
my $app = sub { ... };
builder {
enable "IPAddressFilter", rules [
# deny from all for default.
'+ 127.0.0.1', # allow from localhost.
'+ 192.168.0.0/24', # allow from LAN
'- 192.168.0.5-192.168.0.10', # except from some hosts.
'+ 192.0.34.72/255.255.255.240', # allow from subnet.
];
$app;
}
DESCRIPTION
Plack::Middleware::IPAddressFilter is a IP address based access control
handler for Plack.
CONFIGURATION
rules
IP address ranges to allow/deny. '-' prepended ranges are denied,'+'
prepended or prepend less are allowd.
AUTHOR
Rintaro Ishizaki <[email protected]>
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.