我知道这可以做,因为Twitter可以做到。以下是证明:
一样?
解决方案听起来像Twitter从浏览器请求头中检查IP地址,因此您需要在请求时在服务器端实现类似的功能。例如,在Java中:
如何从Java头中检索IP地址
编辑:不依赖IP地址的解决方案在这里更详细:
如何唯一标识访问我的网站的计算机? / a>
I'm looking to identify each computer that accesses my website independent of cookies.
I know it can be done because Twitter does it. Here's proof:
How can I do the same? I'd like to track individual computers that visit my site independent of them clearing cookies, or expiring cookies.
解决方案Sounds like Twitter checks IP addresses from the browser request headers, so you would need to implement something similar on the server side when your request comes in. For example, in Java:
How can I retrieve IP address from HTTP header in Java
Edit: A solution that doesn't rely on IP addressed in more detail here:
How do I uniquely identify computers visiting my web site?
更多推荐
如何识别我的网站上没有Cookie的特定计算机(就像Twitter一样)?
发布评论