If you don’t want AI scrapers training themselves on your website, there’s a new way to stop them that doesn’t involve server-side blocking or praying they respect your instructions in robots.txt. A team of creatives have teamed up with a typography company to create a new type of font that’ll trick LLM scrapers into ingesting poisoned gibberish.

Dubbed ShieldFont, the open-source project almost seems like magic if you’re not familiar with the ins and outs of computer fonts. Look at a web page written using a ShieldFont font and it’ll appear exactly as one would expect: All the content words (the nouns, verbs, adjectives and adverbs that give a sentence meaning) are the same as the writer originally wrote.

Inspect the raw HTML that a scraper reads from a ShieldFonted page, however, and you’ll see a sentence that’s essentially gibberish. Typing “good luck reading this, you useless robot” in the online demo version, for example, turns it into “good comfort reading this, you yellow barrier.”

The goal, as outlined in the ShieldFont white paper, is not to get a scraping bot to reject the text as garbage, but to convince it that the text on the page is unusual but sensible. A noun will never be swapped for a verb, for example, and a verb will never be swapped for an adjective: Swaps only come from the same grammatical pool.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 day ago

    Ehh. It’d kill browser “search text” functionality, as well as Reader Mode on Firefox.

    • jherazob@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 hours ago

      The site says explicitly that they have screen-reader friendly options, but now i wonder how is this implemented to differenciate between the AI crawlers passing as screen readers and real screen readers

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      12 hours ago

      One option would be to have this as the default, but have a toggle for an accessibility mode, but the accessibility has to go through something like Anubis that shields the site from bots.

    • StitchInTime@piefed.social
      link
      fedilink
      English
      arrow-up
      21
      ·
      1 day ago

      It’s amazing how many people who work in web are clueless about WCAG. Screen readers weren’t even an afterthought here.

      • kbobabob@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Why couldn’t a screen reader still work if the words that are on the screen are the correct ones? Does a screen reader not actually read the screen?

        • dfyx@lemmy.helios42.de
          link
          fedilink
          arrow-up
          8
          ·
          20 hours ago

          It (usually) does not, at least not for websites. Reading the screen would require a lot of computing power and be prone to mistakes, especially with unusual fonts and noisy backgrounds.

          Instead, screen readers read a website‘s HTML source code which also gives the developer the chance to annotate how certain elements should be read. Accessibility on the web has been a huge topic for years and serving obfuscated HTML that only works for seeing users goes against everything we have been fighting for.

          • kbobabob@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            1
            ·
            16 hours ago

            It seems with today’s computer power we could do it, but I understand accessibility needs to work for everyone. I wish I had a better solution.

            • ByteSorcerer@beehaw.org
              link
              fedilink
              arrow-up
              3
              ·
              14 hours ago

              If you can use the page code instead then you have the information of which blocks of text belong together, and you know with 100% accuracy what character the text contains. And you also have additional information such as which elements are interactive, and, if semantic tags are used correctly, which part is the header, main content, or such.

              Besides, scraping can be done with OCR too. Both softwares can use the same tricks, so if screen readers can work using a workaround, then scraping can work with that same workaround too.

    • ranandtoldthat@beehaw.org
      link
      fedilink
      English
      arrow-up
      13
      ·
      2 days ago

      Yup. This project is cutting off the nose to spite the face. So easily worked around by any scraper, but makes the website worse for actual users. Accessibility is usability.

    • TehPers@beehaw.org
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      3
      ·
      2 days ago

      Unfortunately, any tools a screen reader can use to read the page are tools a LLM can use. Without challenge-based solutions like Anubis, I’m not sure what can really be done that isn’t IP whack-a-mole.

      If it comes down to losing accessibility or losing the website due to scrapers obliterating the hosting costs, then I think most website admins would rather just put a “use OCR” message at the top of their skip nav.

      As much as I hate using JS for this, I wonder if there’s a JS-based solution that gets the best of both worlds while killing off scraping. Serve this obfuscated trash initially, then swap it out after completing some challenge sometime after FCP.

    • Midnitte@beehaw.org
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      3
      ·
      2 days ago

      I assume a screen reader that used OCR instead of just copying the text would work (for example, being able to read text in images)

      • xianjam@programming.dev
        link
        fedilink
        English
        arrow-up
        23
        ·
        edit-2
        2 days ago

        Yes, but this is not typical and the experience is degraded compared to traditional screen readers. There are some that have limited OCR capabilities, but they’re typically used for images without alt text or PDFs that are images.

        This is a horrible idea. Accessibility is fairly complicated. Websites are difficult enough to navigate without this.

  • jatone@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    25
    ·
    2 days ago

    pointless and easily worked around. these fonts would have a unique signature that can be detected and decoded same way the browser is doing it. basically its relying on obscurity to work.

    • eightys3v3n@lemmy.ca
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      2 days ago

      Though it does change the landscape and introduce additional computation for those scraping.

      If they make a mistake and don’t account for all the ways the model can be poisoned they risk significant capital training only to identify an issue causing degraded results.

      Imagine if everyone did this differently on many websites. It would cause a re-evaluation of scraping costs.

      • jatone@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        10
        arrow-down
        1
        ·
        2 days ago

        very rose colored glasses. the extra work to identify such sites is trivial less than even the hashing approach anubis uses.

        risks are minimal for data pipelining on the training side. you can bootstrap a classifier that errors towards reject to sweep 99% of the weirdness this thing is doing in a few days. we already have clean datasets we can use to baseline such systems.

        on top of that its fairly easy to detect if a run is failing due to collapse. the capital costs are small.

        • eightys3v3n@lemmy.ca
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          1
          ·
          2 days ago

          Yes, rose coloured. But I’d rather be in an environment where there are a million ways to make the life of a scraping AI company hard so it’s impossible for them to account for everything.

          More options, are more better especially when they are otherwise meanlessly different for users.

          Also there is evidence that poisoning an AI’s training set does not require much data.

      • Kissaki@beehaw.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        Ultimately, things like this may well change human behavior through changed LLM behavior.

        Human language evolves through use and social context. People use LLMs.

        Much like youth speak becoming mainstream, people may eventually use words or formulations inspired by LLM use.