Everyone knows that bots on the network, if not more, then on a par with real users so accurately. The task for the web project especially for mobile devices is to try to minimize the presence of bots.
The problem with using the user-agent is that the same developer tools successfully imitate them. There is a script implementation that reads data from the gyroscope of the device (I’ll give it below), but javascript api does not work correctly in older versions of Android ...
Are there any other options for determining the reality of the device, except for the one given by me? Interested in both client and server implementation.
var gyroPresent = null; window.addEventListener("devicemotion", function(event) { if (event.rotationRate.alpha || event.rotationRate.beta || event.rotationRate.gamma) { gyroPresent = true; } else { gyroPresent = false; } if (gyroPresent === false) { alert('Нет гироскопа'); } });
gyroPresent = true;to assigngyroPresent = true;:) - Visman