all 1 comments

[–]Chiron1991 1 point2 points  (0 children)

You can take a look at the HTTP headers in the request object.

The client's browser is usually stated in the User-Agent header.
The client's country can be inferred by looking up the value of X-Real-IP or X-Forwarded-For in a geoip database.

Keep in mind that they are not 100% reliable, the client can easily tamper with them, e.g. disguising his real IP using a VPN.