Skip to content
프로젝트

소개

Poor-man's solution to stopping AI companies from scraping your blog

데이터 및 분석

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Banner

Fuzzy Canary

AI companies are scraping everyone's sites for training data. If you're self-hosting your blog, there's not much you can do about it, except maybe make them think your site contains content they won't want. Fuzzy Canary plants invisible links (to porn websites...) in your HTML that trigger scrapers' content safeguards.

npm CI License npm downloads Bundle size

Getting Started

Installation

npm i @fuzzycanary/core
# or
pnpm add @fuzzycanary/core

Usage

There are two ways to use it: client-side or server-side. Use server-side if you can—it works better because the canary is in the HTML from the start, so scrapers that don't run JavaScript will still see it.

Server-side (recommended):

If you're using a React-based framework (Next.js, Remix, etc.), add the <Canary /> component to your root layout:

// Next.js App Router: app/layout.tsx
// Other React frameworks: your root layout file
import { Canary } from '@fuzzycanary/core/react'

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <Canary />
        {children}
      </body>
    </html>
  )
}

For non-React frameworks, use the getCanaryHtml() utility and insert it at the start of your <body> tag.

Client-side:

If you're building a static site or prefer client-side injection, import the auto-init in your entry file:

// Your main entry file (e.g., main.ts, index.ts, App.tsx)
import '@fuzzycanary/core/auto'

That's it. It will automatically inject the canary when the page loads.

Notes on SEO

Fuzzy Canary now injects for every visitor, including crawlers. If you're concerned about how this affects indexing or rankings, consider testing in a staging environment before rolling out to production.

관련 프로젝트 살펴보기

불러오는 중…