Block AI scrapers on Squarespace
Sample key shown. Add your site to get yours.
  1. Open Pages, click Custom Code at the bottom, then Code Injection (on 7.0: Website Tools, Code Injection).
  2. Paste the HEAD snippet into Header and the BODY snippet into Footer. Save.
  3. Settings, Crawlers: tick Block known artificial intelligence crawlers.

Needs the Core plan or higher. Squarespace does not let you edit robots.txt, so the tick box does that part.