Client ip address #1224
-
how can I get client ip in an plugin? |
Beta Was this translation helpful? Give feedback.
Answered by
abhinavsingh
Jul 17, 2022
Replies: 1 comment 4 replies
-
@poerschke There are a few header related utilities in the 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. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
abhinavsingh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@poerschke There are a few header related utilities in the
HttpParser
class, which is essentially yourrequest
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.