tianji
tianji copied to clipboard
Website Visitor Country
Hello,
I'm wondering what header information the Country list is using.
Header: Remote_addr can be a bit weird where in a proxy envoiremnt could cause false positives.
Would be nice to use CF-Connecting-IP and or X-Forwarded-For
sure, tianji is using cf-connecting-ip, and also using much header like x-forwarded-for and much header which provided by request-ip package
here is source code, feel free to check it
https://github.com/msgbyte/tianji/blob/e2d1a07f96b7b44e40e0da58b514956067c95144/src/server/utils/detect.ts#L65-L79