Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个阻止用户而不是整个网络(调制解调器)的 php 脚本。我知道我可以从调制解调器获取 IP,但是我的服务器如何区分调制解调器后面的用户?有没有可能的解决方案?
没有办法只阻止一个用户:您可以阻止用户代理和 IP 地址的组合,但用户可以更改浏览器。到目前为止,黑客也可以更改他的用户代理,这几乎是不可能的。
您可以尝试的事情(但它们可能会失败):
当用户足够聪明地知道如何清理 cookie 时,如果不阻止 IP,就不可能做你想做的事。