Most mass scrapers, on the other hand, simply grab the raw HTML underneath. ShieldFont exploits this difference through an automated process called OpenType glyph substitution.

That said, because the whole defense rests on scrapers reading code rather than screens, taking a screenshot of a shielded page and running OCR on the image can still recover the real words.

Screen readers used by blind readers also work from the code, so they read the decoys aloud. ShieldFont ships with a beta feature that provides those readers with the real text instead.

    • FTonsilStones@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      76
      ·
      1 month ago

      Per the article, yes:

      Screen readers used by blind readers also work from the code, so they read the decoys aloud.

      But:

      ShieldFont ships with a beta feature that provides those readers with the real text instead.

      • ViatorOmnium@piefed.social
        link
        fedilink
        English
        arrow-up
        76
        ·
        1 month ago

        ShieldFont ships with a beta feature that provides those readers with the real text instead.

        AI scrappers will just pretend to be screen readers then.

        And if the approach becomes popular they will just OCR the text instead.

        • Zarobi@aussie.zone
          link
          fedilink
          English
          arrow-up
          21
          ·
          1 month ago

          Per the GitHub:

          Accessibility layer<Shield> hides protected regions from assistive tech and ships an a11y prop that renders a real alternative beside them — mode: "text" puts your words in the page encrypted behind a time-lock puzzle the reader’s browser opens (no link for a scraper to follow, no artifact for you to host), or mode: "audio" points at a recording you make. What remains: NVDA and JAWS verification (VoiceOver is done by hand, Windows is not), the focus indicator a sighted keyboard user loses to an invisible control, and the non-React tiers shipping none of it.

          In summary, they have two ways to get around this.

          • By default, blind people are fucked as usual. Most everything is unusable via screen reader just due to the way modern websites are designed.
          • Audio mode pre-records an audio file of your text, and plays that, bypassing the screen reader. This is extremely horrible UX for screen readers, for anything more complicated than a wall of text, but at least it’s something.
          • Text mode will do some sort of computational challenge, using CPU on the blind person’s machine for a few seconds, then revealing the original unmolested text. Assuming this works properly, because screen readers are extremely fragile beasts.
        • cley_faye@lemmy.world
          link
          fedilink
          English
          arrow-up
          10
          ·
          1 month ago

          AI scrappers will just pretend to be screen readers then

          There’s a fair chance they’re already doing that. It provides better insight on the content, less formatting to handle, and even visual stuff gets text alternatives.

        • Sims@lemmy.ml
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 month ago

          It is also very easy to detect surprising text by looking at the perplexity levels by feeding it to a very small model. If there’s a problem, OCR/‘screen read’ it instead…

    • cley_faye@lemmy.world
      link
      fedilink
      English
      arrow-up
      18
      ·
      1 month ago

      screen reader, SEO, indexation, in page search, etc.

      Basically, it breaks everything except people… unless they block/substitute fonts for accessibility reasons, in which case fuck people too.

      This is a terrible idea, and it won’t even achieve it’s original “purpose” as it is trivially detectable. Only negatives in this.

      • T156@lemmy.world
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 month ago

        Presumably the AI scraper would also have OCR, and would sidestep things like this?

        • sudo@programming.dev
          link
          fedilink
          English
          arrow-up
          13
          ·
          1 month ago

          A scraper has many more ways around something like sheildfont than just OCR. The question will be if it was actually programmed to check for such measures.

    • gex@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 month ago

      Yes, the decoy text is marked aria-hidden, so it won’t be read out loud. The real text is sent to the browser encrypted, and the decryption process takes ~20 seconds, roughly the same as running ocr.