-
Notifications
You must be signed in to change notification settings - Fork 3
/
clientjs.html
99 lines (81 loc) · 3.93 KB
/
clientjs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE HTML>
<html lang="en">
<head>
<script src="js/clientjs/dist/client.min.js"></script>
</head>
<body>
<p id="fingerprint"></p>
<script>
// Create a new ClientJS object
var client = new ClientJS();
var referrer = document.referrer;
// Get the client's fingerprint id
document.write("ref:" + (referrer) + "<br>");
document.write(client.getBrowserData().ua + "<br>");
document.write(client.getFingerprint() + "<br>");
// client.getCustomFingerprint(...);
document.write(client.getUserAgent() + "<br>");
document.write(client.getUserAgentLowerCase() + "<br>");
document.write(client.getBrowser() + "<br>");
document.write(client.getBrowserVersion() + "<br>");
document.write(client.getBrowserMajorVersion() + "<br>");
document.write(client.isIE() + "<br>");
document.write(client.isChrome() + "<br>");
document.write(client.isFirefox() + "<br>");
document.write(client.isSafari() + "<br>");
document.write(client.isOpera() + "<br>");
document.write(client.getEngine() + "<br>");
document.write(client.getEngineVersion() + "<br>");
document.write(client.getOS() + "<br>");
document.write(client.getOSVersion() + "<br>");
document.write(client.isWindows() + "<br>");
document.write(client.isMac() + "<br>");
document.write(client.isLinux() + "<br>");
document.write(client.isUbuntu() + "<br>");
document.write(client.isSolaris() + "<br>");
document.write(client.getDevice() + "<br>");
document.write(client.getDeviceType() + "<br>");
document.write(client.getDeviceVendor() + "<br>");
document.write(client.getCPU() + "<br>");
document.write(client.isMobile() + "<br>");
document.write(client.isMobileMajor() + "<br>");
document.write(client.isMobileAndroid() + "<br>");
document.write(client.isMobileOpera() + "<br>");
document.write(client.isMobileWindows() + "<br>");
document.write(client.isMobileBlackBerry() + "<br>");
document.write(client.isMobileIOS() + "<br>");
document.write(client.isIphone() + "<br>");
document.write(client.isIpad() + "<br>");
document.write(client.isIpod() + "<br>");
document.write(client.getScreenPrint() + "<br>");
document.write(client.getColorDepth() + "<br>");
document.write(client.getCurrentResolution() + "<br>");
document.write(client.getAvailableResolution() + "<br>");
document.write(client.getDeviceXDPI() + "<br>");
document.write(client.getDeviceYDPI() + "<br>");
document.write(client.getPlugins() + "<br>");
document.write(client.isJava() + "<br>");
document.write(client.getJavaVersion() + "<br>");
document.write(client.isFlash() + "<br>");
document.write(client.getFlashVersion() + "<br>");
document.write(client.isSilverlight() + "<br>");
document.write(client.getSilverlightVersion() + "<br>");
document.write(client.getMimeTypes() + "<br>");
document.write(client.isMimeTypes() + "<br>");
document.write(client.isFont() + "<br>");
document.write(client.getFonts() + "<br>");
document.write(client.isLocalStorage() + "<br>");
document.write(client.isSessionStorage() + "<br>");
document.write(client.isCookie() + "<br>");
// document.write(client.getCookies() + "<br>");
document.write(client.getTimeZone() + "<br>");
document.write(client.getLanguage() + "<br>");
document.write(client.getSystemLanguage() + "<br>");
document.write(client.isCanvas() + "<br>");
document.write(client.getCanvasPrint() + "<br>");
// document.getElementById("fingerprint").innerHTML = fingerprint;
// Print the 32bit hash id to the console
// console.log(fingerprint);
</script>
</body>
</html>