我们可以从客户端获取哪些信息?

Geo*_*ith 38 javascript data-mining data-retrieval

我正在尝试编译可通过javascript访问的信息列表,例如:

  • 地理位置
  • IP地址
  • 浏览器软件
  • 退出位置
  • 入口位置

我知道用户可以改变任何这些信息,并且它的可靠性纯粹与信任有关,但我仍然对从客户端挖掘的其他信息感兴趣.

Nie*_*yan 59

以下是大部分信息:

var info={

    timeOpened:new Date(),
    timezone:(new Date()).getTimezoneOffset()/60,

    pageon(){return window.location.pathname},
    referrer(){return document.referrer},
    previousSites(){return history.length},

    browserName(){return navigator.appName},
    browserEngine(){return navigator.product},
    browserVersion1a(){return navigator.appVersion},
    browserVersion1b(){return navigator.userAgent},
    browserLanguage(){return navigator.language},
    browserOnline(){return navigator.onLine},
    browserPlatform(){return navigator.platform},
    javaEnabled(){return navigator.javaEnabled()},
    dataCookiesEnabled(){return navigator.cookieEnabled},
    dataCookies1(){return document.cookie},
    dataCookies2(){return decodeURIComponent(document.cookie.split(";"))},
    dataStorage(){return localStorage},

    sizeScreenW(){return screen.width},
    sizeScreenH(){return screen.height},
    sizeDocW(){return document.width},
    sizeDocH(){return document.height},
    sizeInW(){return innerWidth},
    sizeInH(){return innerHeight},
    sizeAvailW(){return screen.availWidth},
    sizeAvailH(){return screen.availHeight},
    scrColorDepth(){return screen.colorDepth},
    scrPixelDepth(){return screen.pixelDepth},


    latitude(){return position.coords.latitude},
    longitude(){return position.coords.longitude},
    accuracy(){return position.coords.accuracy},
    altitude(){return position.coords.altitude},
    altitudeAccuracy(){return position.coords.altitudeAccuracy},
    heading(){return position.coords.heading},
    speed(){return position.coords.speed},
    timestamp(){return position.timestamp},


    };
Run Code Online (Sandbox Code Playgroud)

  • 我听说可以从移动设备获取电池信息,而某些网站,如酒店预订网站,在电池接近空的时候会提高价格. (5认同)
  • “位置”未定义。 (5认同)
  • 电池电量只能在某些浏览器上访问,iOS 9 不可用 (4认同)
  • @BelowtheRadar 参考会很好 (3认同)

Mar*_*era 18

别忘了

  • 屏幕尺寸
  • 允许的Cookie
  • 允许Java
  • 手机或桌面
  • 语言

这里有与数据挖掘演示有用的链接:

http://javascriptsource.com/user-details/browser-properties.html


cal*_*-me 8

visitor.js是一个javascript库,提供有关客户端的信息.

包含:

  1. 大陆,国家和城市
  2. 上次访问的日期
  3. 引用网站或搜索引擎(包括搜索词)
  4. 花在网站上的时间
  5. 浏览器和操作系统
  6. IP地址
  7. 语言
  8. 浏览器
  9. OS
  10. 屏幕尺寸

和更多.

http://www.visitorjs.com/

Visitorjs可能非常方便,但它不是免费的.