iamddr 12 Posted May 13, 2017 Report Share Posted May 13, 2017 Some websites use screen resolution(Js get Screen.width/height) to identity bots(all sessions use same screen resolution).Unfortunately, ubot/exbrowser can't modificate screen resolution(Screen.width&Screen.height). Anyone know how to modificate screen resolution(fake screen resolution) to prevent website use JS (Screen.width&Screen.height) identity bots. Quote Link to post Share on other sites
iamddr 12 Posted May 13, 2017 Author Report Share Posted May 13, 2017 I found this code, I works. but the code must run before the html loaded complete or run as extension of browser. ubot/exbrowser cant inject js before load web page loaded.....anybody can make this works on system/os level or process level or change "Object Property" before launch browser? <html> <head> <script> window.alert("Window resolution before overwrite is " + window.screen.width + " x " + window.screen.height); Object.defineProperty(window.screen, "width", { get: function(){return 2017; }}); Object.defineProperty(window.screen, "height", { get: function(){return 1999; }}); </script> </head> <body> <script> window.alert("Window resolution after overwrite is " + window.screen.width + " x " + window.screen.height); </script> </body> </html> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.