Skip to content

get real ip from web traffic #5813

@FuhuXia

Description

@FuhuXia

We use the leftmost entries in the x_forwarded_for from cloudfront as the real ip and use it in our log analysis on NewRelic. It is not reliable since client can inject entries there and we see private ip as the leftmost XFF entry, such as this one for SSA.

x_forwarded_for:"172.27.226.194, 137.200.49.15, 64.252.66.8, 127.0.0.

We need to find a more reliable way to get real ips, such as CloudFront-Viewer-Address.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSoftware defect or bug

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions