使用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.