Story Details

  • Detect and crash Chromium bots

    Posted: 2025-05-07 15:01:46

    The blog post details a method for detecting and disrupting automated Chromium-based browsers, often used for malicious purposes like scraping or credential stuffing. The technique exploits a quirk in how these browsers handle JavaScript's navigator.webdriver property, which is typically true for automated instances but false for legitimate user browsers. By injecting JavaScript code that checks this property and subsequently triggers a browser crash (e.g., an infinite loop or memory exhaustion) if it's true, websites can selectively disable or deter unwanted bot activity. This approach is presented as a simple yet effective way to combat automated threats, although the ethical implications and potential for false positives are acknowledged.

    Summary of Comments ( 11 )
    https://news.ycombinator.com/item?id=43916622

    HN commenters largely discussed the ethics and efficacy of the proposed bot detection method. Some argued that intentionally crashing browsers is harmful, potentially disrupting legitimate automation tasks and accessibility tools. Others questioned the long-term effectiveness, predicting bots would adapt. Several suggested alternative approaches, including using progressively more difficult challenges or rate limiting. The discussion also touched on the broader issue of the arms race between bot developers and website owners, and the collateral damage it can cause. A few commenters shared anecdotes of encountering similar anti-bot measures. One commenter pointed out a potential legal grey area regarding intentionally damaging software accessing a website.