Hello! Surely everyone knows about the sites that block the browser and it becomes very difficult to close, and even they require money. I would like to catch such sites automatically. As far as I understand, blocking takes place using an infinite alert, confirm, beforeOnClose alert. Or block the browser otherwise? I suppose it is impossible to recognize this by regular parsing of codes from the site, since they can be strongly obfuscated. So you need a javascript machine that will execute the scripts? If there are ideas and tools for the execution of js and the analysis of the blocking functions that appear - please tell us!

  • In modern browsers, it is not possible to display blocking windows on window.onbeforeunload from such sites. The machine that executes the scripts is, called the browser. There are things like headless browsers for every kind of robot-surfing. The most popular is called PhantomJS - Duck Learns to Take Cover
  • In general, the topic seems to me to be five years late, modern browsers allow you to quickly close such a dirty trick, showing a tick to close after a single-modal window, I haven’t seen anything for a couple of clicks for a long time. - Duck Learns to Take Cover
  • I agree that this is outdated, but I read in a recent article on teaser networks that the problem is still a problem. Perhaps there was a way to block the browser, thanks for the answer, I will have a look that for PhantomJS - iproger
  • @ Duck LEARNING I also noticed that you can close such windows without any problems. Close the question like “Off topic” → “Question caused by a problem that is no longer playing”? - Vadim Ovchinnikov
  • @ Duck Learns how, as usual, everything depends on the browser, just recently a theme with an endless cycle that chrome hangs, but which can be killed in ff, just skipped - Grundy

0