简体   繁体   English

其他获得访客在您网站上的位置的方法?

[英]Other ways to get the location of the visitor on your site?

我已经尝试了HTML 5地理定位,GEOIP和许多其他服务。但是它仍然不是很好。即使我只需要获取访问者的国家/地区也可以。

IMO the best way is to use GEOIP, you can also get the free city database if you want to drill down the location further. IMO最好的方法是使用GEOIP,如果您想进一步挖掘位置,还可以获取免费的城市数据库。 I wrote a simple class that works with apache's mod_geoip as well as instructions on how to install the module and geoip databases. 我编写了一个与apache的mod_geoip一起使用的简单类,以及有关如何安装模块和geoip数据库的说明。 It's on GitHub if you want to take a look. 如果您想看看,它在GitHub上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM