Javascript 我们可以从客户那里获取哪些信息?

Javascript 我们可以从客户那里获取哪些信息?,javascript,data-mining,data-retrieval,Javascript,Data Mining,Data Retrieval,我正在尝试编译一个可以通过javascript访问的信息列表,例如: 地理位置 IP地址 浏览器软件 出口位置 入口位置 我知道用户可以更改这些信息中的任何一个,而且它的可靠性完全与信任有关,但我仍然对从客户机中挖掘哪些其他信息感兴趣。不要忘记 屏幕大小 允许的饼干 允许的Java 移动或桌面 语言 下面是数据挖掘演示的有用链接: 以下是大部分信息: var info={ timeOpened:new Date(), timezone:(new Date()).getT

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

  • 地理位置
  • IP地址
  • 浏览器软件
  • 出口位置
  • 入口位置
我知道用户可以更改这些信息中的任何一个,而且它的可靠性完全与信任有关,但我仍然对从客户机中挖掘哪些其他信息感兴趣。

不要忘记

  • 屏幕大小
  • 允许的饼干
  • 允许的Java
  • 移动或桌面
  • 语言
下面是数据挖掘演示的有用链接:


以下是大部分信息:

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


    };

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

包括:

  • 大陆、国家和城市
  • 上次访问日期
  • 参考网站或搜索引擎(包括搜索词)
  • 花在网站上的时间
  • 浏览器和操作系统
  • IP地址
  • 语言
  • 浏览者
  • 操作系统
  • 屏幕大小
  • 还有更多


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

    Thank's这是一些有用的信息,注意,它获取的一些关于我的信息有点不准确,比如我的最大屏幕分辨率比我当前的分辨率低,但它足够接近。你可能无法使用这种方法获取精确信息。客户端操作系统我听说可以从移动设备和一些网站获取电池信息,这类酒店预订网站会在电池电量接近耗尽时提高价格。电池电量只能在某些浏览器上访问,iOS 9则不然available@BelowtheRadar如果未定义位置,则最好是引用。