PHP如何检测HTTP请求中随机生成的IP?
我使用 PHP 创建了一个 Web 应用程序。我想知道IP是否是从代理或客户端应用程序随机生成的。我们的应用程序只允许每个 IP 地址单击一次。 我已使用 $_SERVER['HTTP_USER_AGENT']
检查了用户代理。我目前得到了用户代理。但我想知道用户代理是否使用任何其他工具来生成IP地址 动态地。是否可以使用代码进行检查?
I have created one web application using PHP. I want know the IP randomly generated or not from proxy or client side application. Our application only allow one click per IP address.
I had checked the user agent by using $_SERVER['HTTP_USER_AGENT']
. I got the user agent currently. but I want know whether the user agent using any other tool to generate IP address
dynamically. is it possible to check by using the code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试这段代码:
来源:digitalpoint
You can try this piece of code:
Source: digitalpoint