Plack::Middleware::PeriAHS::CheckAccess - Deny access based on some criteria
This document describes version 0.50 of Plack::Middleware::PeriAHS::CheckAccess (from Perl distribution Perinci-Access-HTTP-Server), released on 2014-07-22.
This middleware denies access according to some criterias in $env-{"riap.request"}>. It should be put after ParseRequest.
$env-
For a more sophisticated access control, try the PeriAHS::ACL middleware.
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.
loglevel
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:
pl
deny_uri => ARRAY|REGEX (default ['pl'])
Forbidden URIs.
allow_action => ARRAY|REGEX
Which actions are allowed.
deny_action => ARRAY|REGEX
Which actions are forbidden.
Please visit the project's homepage at https://metacpan.org/release/Perinci-Access-HTTP-Server.
Source repository is at https://github.com/sharyanto/perl-Perinci-Access-HTTP-Server.
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.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2014 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.
To install Perinci::Access::HTTP::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perinci::Access::HTTP::Server
CPAN shell
perl -MCPAN -e shell install Perinci::Access::HTTP::Server
For more information on module installation, please visit the detailed CPAN module installation guide.