php - 用 PHP 确定访问者的操作系统

标签 php codeigniter user-agent os-detection

我正在尝试使用 PHP(Codeingiter) 获取访问者的操作系统。我试过https://github.com/serbanghita/Mobile-Detect 。它在 70% 的时间里对我有效。但仍然无法准确检测。大量 Android 流量未检测为手机或平板电脑。

最佳答案

没有准确的方法可以通过 php 或任何其他服务器语言检测操作系统。

这种检测通常依赖于浏览器代理,但它可能是伪造的,并且大多数时候没有足够的信息。

关于php - 用 PHP 确定访问者的操作系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44321959/

相关文章:

php - MySQL警告: IP address could not be resolved

javascript - Uncaught ReferenceError : 'somevar' is not defined

javascript - 显示 data-id 到 <select> Bootstrap 模式

http - 如何使用空用户代理发送请求?

web-services - 自定义 http 用户代理字符串的最佳实践?

php - PHP 网页的英语到阿拉伯语翻译

codeigniter - 带有 Codeigniter 的 SASS

codeigniter - 托管大型图像库的最佳实践

mysql - HTTP header 中的 unicode 用户代理是否合法?

php - 从 3 个不同的 mysql 表中选择数据