NAME
Plack::Middleware::PeriAHS::CheckAccess - Deny access based on some criteria
VERSION
version 0.32
DESCRIPTION
This middleware denies access according to some criterias in $env-
{"riap.request"}>. It should be put after ParseRequest.
For a more sophisticated access control, try the PeriAHS::ACL middleware.
CONFIGURATIONS
allow_log => BOOL (default 1)
Whether to allow request for returning log messages (request key
loglevel
with values larger than 0). You might want to turn this off on production servers.allow_uri_scheme => ARRAY|REGEX (default ['pl'])
Which URI schemes are allowed. By default only local schemes are allowed. Add 'http' or 'https' if you want proxying capability.
deny_uri_scheme => ARRAY|REGEX
Which URI schemes are forbidden.
allow_uri => ARRAY|REGEX (default ['pl'])
Allowed URIs. Note that URIs are normalized with scheme
pl
if unschemed. Example:deny_uri => ARRAY|REGEX (default ['pl'])
Forbidden URIs.
allow_action => ARRAY|REGEX
Which actions are allowed.
deny_action => ARRAY|REGEX
Which actions are forbidden.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.