normalise_ips: normalise IP addresses for geolocation

Description Usage Arguments Value

View source: R/RcppExports.R

Description

normalise_ips takes IP addresses and x_forwarded_for values and, in the event that x_forwarded_for is non-null, attempts to extract the "real" IP closest to the client.

Usage

1
normalise_ips(ip_addresses, x_forwarded_fors)

Arguments

ip_addresses

a vector of IP addresses

x_forwarded_fors

an equally-sized vector of XFF values, retrieved from read_sampled_log.

Value

a vector of IP addresses, incorporating the XFF header value where appropriate


wikimedia-research/pageviews documentation built on May 4, 2019, 5:24 a.m.