我们可以从客户端访问哪些信息

What information can we access from the client?

本文关键字:信息 访问 客户端 我们      更新时间:2023-09-26

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

  • 地理位置
  • 浏览器软件
  • <
  • 出口位置/gh><
  • 入口位置/gh>

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

以下是大部分信息:

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},

    };

别忘了

  • 屏幕大小
  • <
  • 允许饼干/gh>
  • 允许Java
  • 移动端或桌面端
  • 语言>

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

http://www.alanwood.net/demos/browserinfo.html

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

包括:

  1. 大洲、国家和城市
  2. 上次访问日期
  3. 引用网站或搜索引擎(包括搜索词)
  4. 网站使用时间
  5. 浏览器和操作系统
  6. 语言>浏览器
  7. 操作系统
  8. 屏幕大小

等等。http://www.visitorjs.com/

Visitorjs可能很方便,但是它不是免费的