【问题标题】:How to detect visitor's country and display the right image or text?如何检测访问者的国家并显示正确的图像或文本?
【发布时间】:2016-09-20 22:14:28
【问题描述】:

有什么方法可以检测访问者的国家并显示正确的图像吗?

示例: 访问者导航到我的网站,网站得到他来自美国的回复,网站将显示 'usa.png' 而不是 'default.png' ?

谢谢。

【问题讨论】:

标签: php html


【解决方案1】:

有了IP,就可以使用Maxmind的免费数据库来比较Ip访问者:http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-10
    • 1970-01-01
    • 2011-01-10
    • 1970-01-01
    • 2015-03-04
    • 1970-01-01
    • 2015-08-25
    • 2011-05-09
    相关资源
    最近更新 更多