如何检测像Facebook这样的新机器? [英] How to detect new Machine like Facebook?

查看:83
本文介绍了如何检测像Facebook这样的新机器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上正在尝试使用计算机来检测人,就像facebook.每当您使用其他计算机登录Facebook时,它都会检测到新计算机并要求您进行注册.他们如何发现该人正在使用另一台计算机.可能是他们可以跟踪客户端的MAC或实际IP(但这通常在每次重新连接后都会更改).

I am actually trying to detect a person, using a computer, Just like facebook. Whenever you sign into facebook using different machine, it detects the new machine and asks you the register it. How do they find out that the person is using another computer. May be they can track the clients MAC or actual IP (but this normally changes upon every reconnection).

如何检测到这个?

推荐答案

我最近亲自尝试了以下结果:

I recently tried this myself with the following results:

MACBOOK =我的笔记本电脑

MACBOOK = My laptop

DELL =我的朋友笔记本电脑

DELL = My friends laptop

我在瑞典的MACBOOK上登录Facebook,并要求命名该设备.

I logged in to Facebook on MACBOOK in SWEDEN, and was asked to name the device.

我的朋友在瑞典DELL的Facebook上登录,并要求命名该设备.

My friend logged in to Facebook on DELL in SWEDEN and was asked to name the device.

我们俩都去了日本.

我在日本的MACBOOK上登录了Facebook,不要求我再次命名设备.

I logged in to Facebook on MACBOOK in JAPAN, I was not requested to name the device again.

我的朋友在JAPAN的DELL上登录了Facebook,并不要求再次命名该设备.

My friend logged in to Facebook on DELL in JAPAN, and was not requested to name the device again.

我在JAPAN的DELL上登录了Facebook,并要求命名该设备.

I logged in to Facebook on DELL in JAPAN, and was asked to name the device.

因此,我得出了两个不同的选择:

So, from that I conclude two different options:

  1. 每个在设备上登录的Facebook用户的持久性cookie.
  2. Facebook可以以某种方式匹配MAC地址.

由于2.如果不安装插件就无法实现2.剩下的就是1.

Since 2. is never achievable without you installing plugins or whatnot, we are left with 1.

浏览我在Facebook上拥有的cookie,我发现其中的13个.为此使用Google Chrome真的很有用.只需转到chrome://settings/cookies,您就会获得一个列表.

Exploring the cookies I have with Facebook, I discover 13 of them. Using Google Chrome for this is really useful. Just go to chrome://settings/cookies and you'll get a list.

名为"lu"的Facebook cookie包含以下信息:

The Facebook cookie named "lu" contains the following information:

Name:   lu
Content:    (data)
Domain: .facebook.com
Path:   /
Send For:   Any kind of connection
Accessible to Script:   No (HttpOnly)
Created:    Thursday, June 9, 2011 8:58:10 PM
Expires:    Saturday, June 8, 2013 8:58:10 PM

这是他们拥有的唯一一个不会在浏览器关闭的同一天或几天前过期的Cookie.根据我的推测,(数据)将由他们检查此功能的设备信息组成.

This is the only cookie they have that don't expire on browser close, the same day or a few days ahead. My educated guess would be that (data) would consist of the device information they check for this feature.

我也可能会猜测它们将信息存储在数据库中,并且在登录后会再次将数据与您进行匹配.如果您以某些预定义的方式进行匹配(例如ip地址和浏览器仍然相同),则会自动获得批准.这可以解释为什么您可以格式化计算机并仍然批准该设备.

I would also guess that they store the information in their database, and upon logging in they match the data against you again. If you match in certain predefined ways (like, both the ip adress and the browser is still the same), you automatically gets approved. This would explain why you could format your computer and still have the device approved.

我猜想,如果您删除所有cookie,然后转移到其他互联网提供商,则将需要重新注册该设备.

I am guessing that if you delete all cookies and then move to a different internet provider, you would be required to register the device again.

这篇关于如何检测像Facebook这样的新机器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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