NAME
Plack::Middleware::PeriAHS::CheckAccess - Deny access based on some criteria
VERSION
This document describes version 0.620 of Plack::Middleware::PeriAHS::CheckAccess (from Perl distribution Perinci-Access-HTTP-Server), released on 2017-12-09.
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.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Perinci-Access-HTTP-Server.
SOURCE
Source repository is at https://github.com/sharyanto/perl-Perinci-Access-HTTP-Server.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Access-HTTP-Server
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.