使用IP地址限制对站点的访问 [英] Restricting access to a site using IP address

查看:62
本文介绍了使用IP地址限制对站点的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以限制站点的用户,使其只有在IP地址或网络范围内时才能访问站点的内部页面?

I would like to know whether there is a way of restricting the users of a site such that they can only access the inner pages of a site if they are within a certain range of IP addresses or a certain network?

我正在获取的当前PHP脚本无法将真实IP与代理区分开来?

The current PHP scripts I am getting cant differentiate the real IPs from the Proxies?

谢谢

推荐答案

我不会限制IP地址.如您所说,您不知道它是否是代理.而且,可以很容易地欺骗ip地址.

i wouldn’t restrict on ip addresses. as you said, you can’t know if it’s a proxy. furthermore, ip addresses can be easily spoofed.

这篇关于使用IP地址限制对站点的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆