Jump to content
UBot Underground

How To Prevent Website Use Screen.width&screen.height Identity Bots?


Recommended Posts

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.

 

 

Link to post
Share on other sites

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>
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...