-
-
24 Jul 2017 13:40:20 UTC
- Distribution: Plack-Middleware-XForwardedFor
- Module version: 0.172050
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (1)
- Testers (595 / 0 / 0)
- Kwalitee
Bus factor: 0- 95.24% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (10.93KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Net::IP
- Plack
- parent
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Plack::Middleware::XForwardedFor - Plack middleware to handle X-Forwarded-For headers
VERSION
version 0.172050
SYNOPSIS
builder { enable "Plack::Middleware::XForwardedFor", trust => [qw(127.0.0.1/8)]; };
DESCRIPTION
Plack::Middleware::XForwardedFor
will look forX-Forwarded-For
header in the incoming request and changeREMOTE_ADDR
to the real client IPPARAMETERS
- trust
-
If not specified then all addressed are trusted and
REMOTE_ADDR
will be set to the first IP in theX-Forwarded-For
header.If given, it should be a list of IPs or Netmasks that can be trusted. Starting with the IP of the client in
REMOTE_ADDR
then the IPs in theX-Forwarded-For
header from right to left. The first untrusted IP found is set to beREMOTE_ADDR
SEE ALSO
AUTHOR
Graham Barr <gbarr@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Graham Barr.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Plack::Middleware::XForwardedFor, copy and paste the appropriate command in to your terminal.
cpanm Plack::Middleware::XForwardedFor
perl -MCPAN -e shell install Plack::Middleware::XForwardedFor
For more information on module installation, please visit the detailed CPAN module installation guide.