M
M
Maxim2013-11-25 10:56:25
Browsers
Maxim, 2013-11-25 10:56:25

Is there a database of valid User Agents broken down by browsers?

It is necessary to determine who is requesting the page - the user in the browser or a bot.
You need to define it on the server side, javascript will not work.
The task of resisting the intentional substitution of the User Agent by bots is not worth it.
Are there any up-to-date lists of UAG matches for specific browsers in nature?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hint, 2013-11-25
@maxout

http://php.net/manual/ru/function.get-browser.php
For this function to work, the correct path to the browscap.ini file on your system must be set in the browscap installation in the php.ini settings.
http://tempdownloads.browsercap.com/

B
boss_lexa, 2013-11-26
@boss_lexa

https://github.com/tobie/ua-parser/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question