codemeasandwich / scribbles

scribbles is a log and tracing lib for Node
MIT License
10 stars 0 forks source link

improve IP detection #19

Open codemeasandwich opened 1 year ago

codemeasandwich commented 1 year ago

here are some more proxy headers

['http_via', 'http_x_forwarded_for', 'http_forwarded_for', 'http_x_forwarded', 'http_forwarded', 'http_client_ip', 'http_forwarded_for_ip', 'via', 'x_forwarded_for', 'forwarded_for', 'x_forwarded', 'forwarded', 'client_ip', 'forwarded_for_ip', 'http_proxy_connection']

The problem: A client can set any of these headed.. how can you distinguish between a bad client & a good proxy?

codemeasandwich commented 1 year ago

https://www.abstractapi.com/guides/how-to-detect-if-an-ip-address-is-using-a-proxy#api-services-a-better-way-to-detect-proxies