TuringFonts:发布不可抓取和不可复制的文本
TuringFonts: Publish Uncrawable and Uncopiable Texts

原始链接: https://jfmdev.github.io/TuringFonts/index.html

TuringFonts 是一种发布文本的方法,人类可读,但机器人和剪贴板复制难以轻易捕获。它结合了替换密码和自定义“Turing 字体”:显示的文本被编码(例如字母位移),而字体将每个编码字形映射回原始字母。因此自动化阅读器看到的是编码字符串,而人类读者看到的是预期文本。使用时,先用所选替换方法对文本编码,再应用匹配的 Turing 字体。对于文档,安装 TTF 字体,对文本编码,进行格式设置,并导出嵌入字体的 PDF。对于网站,解压字体包,在 CSS 中声明,对文本编码,并应用字体。可用字体和替换算法可作为 TTF 或 ZIP 文件下载。所有材料采用 Creative Commons Attribution-ShareAlike 4.0 许可。

Hacker News 上的一个帖子讨论了 “TuringFonts”,一种据称无法被抓取和复制的文本发布工具。评论者争论其有效性,尤其是针对 AI。一名用户报告称 ChatGPT 能读取并以相同方式回复简单替换密码;另一名用户指出 Claude 解码了 Atbash 密码并嘲讽了它。怀疑者认为破坏剪贴板只会惹恼用户,用户可以通过截图和 OCR 绕过。发布者反驳说,目标主要是威慑爬虫或提高对抗成本,可能与其他反抓取措施结合使用。总体而言,评论者认为简单密码不会愚弄现代 LLM,因为它们可以适应,从而使该工具的实际安全价值值得怀疑。
相关文章

原文

TuringFonts is a simple technique for generate content (for websites or PDF files) that can't we crawled by bots or copied using the clipboard.

It's useful in situations in which you want to publish some sensitive content that you don't want to be indexed by search engines like Google or Bing (such as e-mail addresses, telephone numbers or personal names) or when you don't want to allow the user to copy and paste your text (to avoid plagiarism or unauthorized modifications).

How it works?

This technique is based on the simple substitution cipher method and in the use of custom fonts.

The simple substitutions cipher in a method of encoding in which each letter is replaced by another one. For example, you could decide to replace each letter by his neighbour in the alphabet (write 'b' instead of 'a', 'c' instead of 'b', etc.), in that case the text "Hello" would be write as "Ifmmp".
A font (in computing) is basically a file that indicates how to draw each letter. So, for example, some fonts define that the letter 'O' must be draw rounded while others indicate that must be oval.

So basically you encrypt your text using some substitution cipher and then you apply (to that text) a Turing font that inverses the substitution previously made.

A Turing font is a font whose symbols has been unordered on purpose. So when a letter is found, another letter is draw in his place. For example, a Turing font may indicate to draw an 'a' when encountering a 'b', draw a 'b' when encountering a 'c', etc.).

In that's way any bot or computer, that get access to your website or PDF file, is going to read the encrypted text while all humans visitors are going to read the original text.

Write some text here:

This is what all computers and bots are going to read:

{{encrypText}}

This is what all humans are going to see*:

{{encrypText}}

(*) Try selecting and copying this text into a notepad to see what happens

Have some doubt? Check the live demo or download the sample PDF file.

How to use it

In order to use this technique, you must follow a two step process:

  1. Encode you text using some substitution method. You can use this encoder to do it.
  2. Apply, to the previous text, a Turing font. In the download section you can find a list of fonts ready to be used.

If you want to use your own substitution alphabets and/or generate your own Turing fonts, I recommend you to read the advanced topics.

In documents

Select a font, a substitution method and download the corresponding TTF file.

Install the downloaded font into your computer.

Encode your text using the substitution method previously chosen.

Copy the encoded text into a word processor and apply the font installed.

Verify that the text can be read and export the document as PDF (indicating that the fonts used must be embedded).

In websites

Select a font, a substitution method and download the corresponding Zip file. Unzip the file in one of your website's folder.

Declare the selected font in the CSS code of the page in which you are going to use it.

Encode your text using the substitution method previously chosen.

Copy the encoded text into the page and apply the font.

Verify that the text can be read.

In this section you will find a list of Turing fonts ready to be used.

Each row of the table contains a font type, and each column indicates the substitution algorithm used for generate the font. For each combination, you can download either a TTF file or a ZIP file (containing the font in all the required formats to be used at the web).

ROT13 Atbash Zebra
Arial
Courier New
Georgia
Tahoma
Verdana

More fonts may be added if you gently ask for them.

License

All fonts, scripts and content of this work are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

联系我们 contact @ memedata.com