GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Plack::Middleware::XForwardedFor(3) User Contributed Perl Documentation Plack::Middleware::XForwardedFor(3)

Plack::Middleware::XForwardedFor - Plack middleware to handle X-Forwarded-For headers

version 0.172050

  builder {
    enable "Plack::Middleware::XForwardedFor",
      trust => [qw(127.0.0.1/8)];
  };

"Plack::Middleware::XForwardedFor" will look for "X-Forwarded-For" header in the incoming request and change "REMOTE_ADDR" to the real client IP

trust
If not specified then all addressed are trusted and "REMOTE_ADDR" will be set to the first IP in the "X-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 the "X-Forwarded-For" header from right to left. The first untrusted IP found is set to be "REMOTE_ADDR"

Plack::Middleware, Net::IP

Graham Barr <gbarr@cpan.org>

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.

2017-07-24 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.