Private ips.pl

From EPrints Documentation
Jump to: navigation, search

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Back to cfg.d

private_ips.pl - If X_FORWARDED_FOR has a private IP address listed below use the just use original remote IP address. This is useful where a client is on a network using private IP address space but then is being a proxy with a public IP address. This is more useful than the private IP address when it comes to determining their location.

Example

$c->{ignore_x_forwarded_for_private_ip_prefixes} = [ '10\.', '127\.', '172\.16\.', '172\.17\.', '172\.18\.', '172\.19\.', '172\.20\.', '172\.21\.', '172\.22\.', '172\.23\.', '172\.24\.', '172\.25\.', '172\.26\.', '172\.27\.', '172\.28\.', '172\.29\.', '172\.30\.', '172\.31\.', '192\.168\.' ];