Skip to main content
ForgeMeshLive on Base mainnet · Free, open source

Pay-per-Crawl for every stack. Know who crawls your site. Charge the ones that can pay.

Pay-per-Crawl shows you every AI crawler, SEO crawler and script that fetches your pages, verifies the real search engines by reverse DNS so SEO is untouched, and lets you answer everything else with a standard HTTP 402 price in USDC on Base, paid to your own wallet. Be clear about what pays today: x402-capable agents do; the big AI labs' crawlers (GPTBot, ClaudeBot, PerplexityBot and friends) do not yet pay anyone per page, and they simply get no content from a charging site. Until they do, this is an honest bot ledger with the price already on the door. You see who takes what, you can block or charge any of it, and when a crawler does pay, it goes straight to you. Nobody in between holds the money. You keep 100%. There is no custody, no account and no API key.

Your readers are untouched: humans and reverse-DNS-verified search engines read free. WordPress, Python, JavaScript, Go and PHP, all free and open source.

Every edition was verified with real $0.01 settlements on Base mainnet before release. See the transactions.

What it does

You keep 100%
Payments settle on Base straight to the wallet you paste in. No custody, no account, no API key, no middleman cut.
Only bots are priced
Humans and reverse-DNS-verified search engines read free. AI crawlers, SEO crawlers and scripts get an HTTP 402. x402-capable agents can pay it; the big AI labs' crawlers do not yet.
Monitor mode first
Watch real bot traffic and what it would have paid without charging anyone, then switch to Charge when the numbers make sense.
Same behaviour on every stack
One crawler catalog (85 known agents), one 402 shape, one classifier. Pick the edition that matches your site and get the same result.
x402 plus MPP
Every 402 carries an x402 v1 and v2 offer and an MPP challenge alongside it, so more agent clients can pay.
Discovery files
Each edition serves /.well-known/x402.json, llms.txt and agents.txt so agents can find your terms.

Set up in four steps

  1. 1Install the edition for your stack below: a WordPress zip, or one pip, npm, go get or composer command.
  2. 2Paste your payout wallet (a 0x address on Base) and set a price. The default is $0.01 per page.
  3. 3Leave it in Monitor mode for a few days and see who is crawling and what they would have paid.
  4. 4When you are ready, switch the mode to Charge. Bots pay, you get USDC, readers notice nothing.

Pick your stack

Same paywall, same crawler catalog, same wallet-direct settlement. Only the install step differs.

  • WordPress

    v0.2.5 · GPLv2

    Any WordPress 6.x site

    Plugins → Add New → Upload Plugin
  • Python

    v0.1.3 · MIT

    FastAPI, Flask, Django

    pip install forgemesh-pay-per-crawl
    Show wiring (FastAPI)
    from forgemesh_pay_per_crawl import Config
    from forgemesh_pay_per_crawl.asgi import PayPerCrawlMiddleware
    
    app.add_middleware(PayPerCrawlMiddleware,
        config=Config(pay_to="0xYourWalletOnBase", mode="gate", price_usd=0.01))
  • Next.js

    v0.1.3 · MIT

    Next 14 / 15 middleware, Next 16 proxy, edge runtime

    npm i @forgemeshlabs/pay-per-crawl-next
    Show wiring (Next.js middleware.js)
    import { createPayPerCrawl } from "@forgemeshlabs/pay-per-crawl-next";
    
    const ppc = createPayPerCrawl({ siteName: "My Site" }); // PAY_TO, PRICE_USD, MODE from env
    export const middleware = ppc.middleware;
    export const config = { matcher: ["/((?!_next/static|_next/image|favicon.ico).*)"] };
  • Vercel

    v0.1.1 · MIT

    Edge Middleware for any non-Next project on Vercel: static sites, Astro, SvelteKit, Vite, Nuxt, Remix

    npm i @forgemeshlabs/pay-per-crawl-vercel

    One middleware.js at the project root. Next.js on Vercel uses the JavaScript edition's -next package.

  • Cloudflare Workers

    v0.1.3 · MIT

    Worker on a zone, custom domain or workers.dev, in front of any origin

    npm i @forgemeshlabs/pay-per-crawl-worker
  • Node

    v0.1.3 · MIT

    Express, Fastify, Hono, Koa

    npm i @forgemeshlabs/pay-per-crawl-node
  • nginx

    vsnippet · MIT

    njs script for ngx_http_js_module, config snippet

    apt install nginx-module-njs
  • Go

    v0.1.2 · MIT

    net/http middleware, Caddy module, Traefik plugin

    go get github.com/forgemeshlabs/pay-per-crawl-go
    Show wiring (net/http)
    http.ListenAndServe(":8080", middleware.Handler(paypercrawl.Config{
        PayTo:    "0xYourWalletOnBase",
        PriceUSD: 0.01,
    }, site))

    Caddy: xcaddy build with the module; Traefik: plugins catalog, topic traefik-plugin.

  • PHP

    v0.1.1 · MIT

    Plain PHP, Laravel 10+, Drupal 10/11

    composer require forgemesh/pay-per-crawl-core
    Show wiring (Plain PHP)
    $gate = new Gate(settings: ['mode' => 'gate', 'pay_to' => '0xYourWalletOnBase', 'price_usd' => 0.01, 'mpp_secret' => 'long-random-string'],
        cache: $cache, http: new NativeHttpClient());
    $result = $gate->handle(new Request($method, $uri, $absoluteUrl, $headers, $remoteIp));
    if ($result->respond) { /* send 402 and stop */ }

What you see

Every edition logs who is crawling, by name and class, what they read and what they paid. WordPress shows it in wp-admin; the other editions expose the same hit log to your app, and Pro turns it into a hosted dashboard for any edition.

Pay-per-Crawl Bot analytics dashboard showing bots by name and class, hits, paths, revenue and settlements
Bot analytics in the WordPress edition: who is crawling, what they read, what they paid.

Proof it settles

Real $0.01 settlements on Base mainnet through the PayAI facilitator, October 2026. One per edition per protocol version, all paid to 0x13C3C28c64cc9d60eEb8a675F3fe27eBC6a4Cd09.

Free and Pro

Every edition is fully functional on its own. Pro adds hosted tools on top and works with any edition: paste the license key into the WordPress settings or set it as the Pro key option in Python, JavaScript, Go or PHP. Payments never pass through ForgeMesh in either tier, and Pro only sees what the plugin reports: daily per-bot counts and settlement records, with no visitor IPs or page content.

Free

$0, open source

  • 402 paywall for AI crawlers and bots
  • Bot classification and hit log
  • Monitor and Charge modes
  • Discovery files (x402.json, llms.txt, agents.txt)
  • Payments straight to your wallet

Hosted account and Pro

Account free · Pro $4.99/month, same key, up to 5 sites, any edition

  • Free: hosted dashboard for all sites, 13 months of history
  • Free: crawler-intelligence feed pulled daily: new bot names, classes and impostor rules
  • Free: listing in the paid-sites directory plus a live SVG badge
  • Pro: pricing rules by bot name, purpose, class or content group, each with its own price
  • Pro: revenue report with a settlements CSV, Base transaction hash on every row
  • Pro: daily paywall monitoring with alerts, and a Monday email digest

Every edition needs a payout address: a 0x wallet on Base. No wallet yet? Follow the 15-minute wallet setup guide (seed phrase safety, MetaMask step by step, when to go cold).

Security notes

Two hardening fixes shipped across all editions on 17 October 2026 and are in every version listed above: trusted X-Forwarded-For now uses the right-most hop, so a client cannot prepend a search-engine IP to read free, and path exemptions are anchored to exact files or slash-delimited prefixes, so a crafted path cannot match an allow rule. Report issues to [email protected].

Check your site's security for free

Email spoofing (SPF, DKIM, DMARC), old TLS, HSTS, CSP, clickjacking and security.txt. Over twenty passive checks, about five seconds, nothing touched. The full report with copy-paste fixes is $5.