Skip to content

Client ip address #1224

Closed Answered by abhinavsingh
poerschke asked this question in Q&A
Jul 17, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

@poerschke There are a few header related utilities in the HttpParser class, which is essentially your request object.

https://github.com/abhinavsingh/proxy.py/blob/develop/proxy/http/parser/parser.py#L117-L153

You can use these methods to infer the client IP based upon remote ip or forwarder-for headers.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@poerschke
Comment options

@abhinavsingh
Comment options

@abhinavsingh
Comment options

@poerschke
Comment options

Answer selected by abhinavsingh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants