Answer the question
In order to leave comments, you need to log in
Is it possible to replace browser timezone information with router tools?
Given: A
client computer connected to the Internet via a router. In the role of a router - a linux server with 2 network cards. The OS of the client and its browser are generally not defined (that is, they can be any).
Task: when going to an arbitrary site using the router, replace information about the timezone if the site tries to do this.
Personally, it seems to me the task is almost unrealistic. Taking into account the fact that the site can determine the timezone using a js script, which will be obfuscated according to a previously unknown algorithm. But maybe there's something I don't know? We consider options for using the site HTTP and HTTPS.
Answer the question
In order to leave comments, you need to log in
Well, you can, for example, implement Javascript, which will do dark deeds. But I'm not sure about the feasibility of the method. Not sure if JS allows you to intercept date functions. And there is a ready-made functional for modifying pages on the fly.
The only way for the server to get the client's current timezone is with Javascript
var offset = new Date().getTimezoneOffset();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question