HTML code to check your browser IP user agent etc

mainceaft

Senior Member
Joined
Apr 10, 2013
Messages
881
Reaction score
184
This is simple HTML page continues some of JavaScript function some sites uses to detect your real identity e.g if your using proxy from different country but forgot to change timezone from your OS settings ,
here is the code :-
HTML:
<!DOCTYPE html>
<html><style >#ip , #dat{ background:cadetblue; color:white;padding:3px 0; } </style>
<body><div id="ip"></div>
<div id="demo"></div>
<script> var ip = "something";
var d   = new Date(); var n = d.getTimezoneOffset();
var now = new Date(); var txt = "";
txt += "<p id='dat' > Date :=   " +  now  + "</p>";
txt += "<p>timezone UTC / Local Time: " +  n  + "</p>";
txt += "<p>navigator.appCodeName: " + navigator.appCodeName + "</p>";
txt += "<p>navigator.appName: " + navigator.appName + "</p>";
txt += "<p>navigator.appVersion: " + navigator.appVersion + "</p>";
txt += "<p>navigator.language: " + navigator.language + "</p>";
txt += "<p>navigator.platform: " + navigator.platform + "</p>";
txt += "<p>User-agent header: " + navigator.userAgent + "</p>";
txt += "<p>navigator.cookieEnabled: " + navigator.cookieEnabled + "</p>";
txt += "<p>navigator.onLine: " + navigator.onLine + "</p>";
let url = 'https://ipapi.co/json/';
fetch(url) .then(res => res.json()) .then((out) => {
   document.getElementById("ip").innerHTML =  ' IP is :-  ' + out.ip ;
}) .catch(err => { throw err }) ;
document.getElementById("demo").innerHTML = txt;
</script>
</body>
</html>
https://raw.githubusercontent.com/No-Shit/browser-info-js/master/javascript.html
Note if you are using Linux you can change timezone globalley with this command
Code:
timedatectl  set-timezone  America/New_York
for Windows
Code:
tzutil /s time_zone_ID 'America/New_York'
 
Back
Top