Answer the question
In order to leave comments, you need to log in
How to get a picture for the title: Countries, Devices, Browser?
How to get an icon by name?
I will get the headers from the browser, but I need to render information, i.e. display the flag, and the icons of the browser and device (computer, phone, tablet).
As for the device, everything is quite simple, but what about browsers and countries?
Build your base?
Answer the question
In order to leave comments, you need to log in
Obviously, you need to compile (or find a ready-made) database of browsers with a comparison by user agent and icons and, using it, display the necessary ones.
Countries can be defined using GeoIP. There are services that provide an API that will allow you not to implement the search on your own. Or you can use the local GeoIP database (you will need to find it too) and use it to determine the country.
By the way, I'm not sure that everything is simple with the device. There are a lot of devices.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question