PHP 记录重定向位置
PHP Record Location on Redirect
我目前正在实施一个 PHP 重定向脚本。但是,在重定向期间,我还想记录用户的位置。我曾尝试使用 GeoPlugin 等网站的 IP 地址和 API 来做到这一点,但这些不是每小时提供高请求的免费替代方案。
那么,您将如何在 php 的重定向脚本中实现位置记录?提前致谢!
顺便说一句,我不确定这个论坛是否适合 post,如果不合适请告诉我,我会移动 post!
你应该试试Maxmind's GeoLite2 Free database if you need only country detection and it fits your needs and licensing. They have native PHP library for fast integration https://github.com/maxmind/GeoIP2-php
我目前正在实施一个 PHP 重定向脚本。但是,在重定向期间,我还想记录用户的位置。我曾尝试使用 GeoPlugin 等网站的 IP 地址和 API 来做到这一点,但这些不是每小时提供高请求的免费替代方案。
那么,您将如何在 php 的重定向脚本中实现位置记录?提前致谢!
顺便说一句,我不确定这个论坛是否适合 post,如果不合适请告诉我,我会移动 post!
你应该试试Maxmind's GeoLite2 Free database if you need only country detection and it fits your needs and licensing. They have native PHP library for fast integration https://github.com/maxmind/GeoIP2-php