P
Pay-per-Crawl
Freeπ Alt to Cloudflare Bot ManagementMonetize AI scrapers by charging per page in USDC
π³ Self-Hostableβ‘ Editorial Signal: 71/100β
7 Stars
npm install pay-per-crawlPay-per-Crawl enables website owners to gate content and charge AI crawlers micro-payments in USDC per scraped page. It solves the uncompensated data harvesting problem by integrating directly into popular web stacks.
Seamlessly collect instant crypto payments for every single page crawl request.
Pre-built integration configurations across 10 major web development stacks.
Differentiate legitimate AI agents from standard users and block non-paying scrapers.
Monetizing high-value documentation and blog sites against LLM scrapers
Enforcing paywalls for proprietary training datasets via API requests
Recovering bandwidth and infrastructure costs incurred by aggressive AI bots
Unlike Cloudflare which simply blocks or challenges bots, Pay-per-Crawl turns AI scrapers into a direct revenue stream.
Content creators, publishers, and platform engineers looking to monetize their traffic against AI scraping bots.
Pay-per-Crawl is engineered to eliminate critical operational friction in apis & web scraping. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.
Delivered for local workstation execution, allowing developers to run workflows directly within their local environment according to official documentation.
ForgeMesh Pay-per-Crawl introduces a programmatic monetization layer for web publishers facing aggressive harvesting from generative AI scrapers and commercial bot fleets. Architecturally, the system implements the Machine Payments Protocol (MPP) leveraging the long-dormant HTTP 402 Payment Required status code. When an incoming HTTP request hits the web tier, the middleware evaluates the client user-agent and IP provenance against a catalog of over eighty-five recognized AI crawler signatures (including GPTBot, ClaudeBot, Bytespider, and PerplexityBot). Legitimate human visitors and reverse-DNS validated search indexing spiders (such as Googlebot) pass through unhindered with standard HTTP 200 OK responses. Commercial AI scrapers, however, are intercepted and issued an HTTP 402 challenge containing an x402 payment header. The challenge encapsulates payment parameters: a nominal fee (defaulting to approximately one cent in USDC), a recipient wallet address, and the target chain identifierβspecifically the Base Layer 2 network. When an automated agent submits an accompanying on-chain transaction hash, the middleware verifies the cryptographic transfer against an RPC node or ephemeral settlement state before unlocking the complete semantic HTML or Markdown payload. The system validates transaction nonces to prevent replay exploitation across concurrent crawler worker threads.
Developer ergonomics in Pay-per-Crawl are defined by its 'every-stack' integration ethos, delivering idiomatic drop-in middleware across modern web development ecosystems. Frontend and full-stack teams install specialized packages including @forgemeshlabs/pay-per-crawl-next for Next.js Edge and Node runtimes, @forgemeshlabs/pay-per-crawl-node for Express, Fastify, Hono, and Koa, forgemesh-pay-per-crawl on PyPI for FastAPI, Flask, and Django, alongside dedicated Caddy modules, Nginx njs scripts, and a turnkey WordPress plugin. Configuration requires minimal declarative syntax: developers specify their non-custodial EVM wallet address, desired page crawl fee in USDC, and path exclusion arrays via environment variables. To facilitate automated agent discovery, every stack natively serves machine-readable declaration files at standardized endpoints, specifically /.well-known/x402.json, llms.txt, and agents.txt. These endpoints inform conforming autonomous crawlers of payment specifications and pricing tiers upfront. Detailed telemetry logs are emitted directly to application loggers, tracking crawler detection events, payment verification states, and settlement latencies without requiring third-party monitoring agents. Local testing utilities allow developers to simulate crawler requests and test payment challenge responses directly against local mock RPC endpoints, ensuring effortless integration into existing continuous deployment pipelines and automated testing harnesses across distributed developer environments.
Pay-per-Crawl is released as open-source software under the permissive MIT License, ensuring developers and organizations retain complete autonomy over deployment, modification, and integration without software licensing fees. From a Total Cost of Ownership perspective, the system turns an infrastructure liability into an active revenue source. Web publishers historically absorb massive bandwidth, compute, and CDN egress costs driven by aggressive AI scrapers extracting training datasets without compensation. Pay-per-Crawl eliminates intermediary payment processor markups: one hundred percent of crawler micropayments settle directly into the publisher's crypto wallet on the Base L2 network, bypassing traditional credit card processing fees, account minimums, and SaaS gateway percentages. On-chain gas fees on Base are negligible (typically fractions of a cent) and are borne entirely by the visiting crawler rather than the origin publisher. Middleware compute overhead is exceptionally low: evaluating bot signatures and parsing payment headers adds sub-millisecond execution latency to incoming HTTP requests, consuming under five megabytes of resident memory within Node.js, Python, or Go application worker processes. The architecture eliminates recurring SaaS subscription liabilities while establishing a direct economic countermeasure against uncompensated scraping across high-traffic digital properties.
Pay-per-Crawl is production-ready for independent publishers, developer documentation sites, technical blogs, and enterprise content platforms seeking to monetize AI scraping traffic or discourage uncompensated bot indexing. It provides an innovative economic solution to the modern scraping crisis, replacing binary IP-blocking with market-based micropayments. However, platform architects must recognize key operational realities: autonomous AI crawlers that lack automated cryptocurrency payment capabilities will fail the HTTP 402 challenge, effectively behaving as if blocked. Furthermore, rogue scrapers operating through rotating residential proxies and spoofed user-agents will bypass user-agent matching unless paired with behavioral WAF heuristics. For robust production rollouts, deploy Pay-per-Crawl at edge ingress layersβsuch as Cloudflare Workers or Nginx reverse proxiesβto terminate unauthorized bot traffic before it hits origin application servers. Enable 'Monitor Mode' during initial rollout to observe crawler frequency without blocking, and maintain automated wallet balance monitoring to reconcile incoming USDC settlements against edge traffic logs, configuring alerting thresholds for unexpected crawler volume spikes and ensuring uninterrupted gateway availability across diverse content delivery networks, edge proxy layers, serverless execution nodes, caching layers, enterprise reverse proxies, API gateway instances, and cloud Kubernetes clusters worldwide.
Pay-per-Crawl is available completely free of charge. Developers can access its core features without payment.
Unlike Cloudflare which simply blocks or challenges bots, Pay-per-Crawl turns AI scrapers into a direct revenue stream.
Yes. Pay-per-Crawl is designed for self-hosting via Docker or direct server deployment. Running on your own infrastructure allows you to maintain direct control over your local compute, database storage, and operational environment.
An account registration is standard to provision access credentials, manage configurations, and coordinate team access.
You can launch or test Pay-per-Crawl quickly using the following command: npm install pay-per-crawl Visit the official portal at https://forgemesh.io/blog/pay-per-crawl-every-stack for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of Pay-per-Crawl was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of Pay-per-Crawl and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/pay-per-crawl)<a href="https://lordorange.top/tool/pay-per-crawl" target="_blank"><img src="https://lordorange.top/badge/pay-per-crawl.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring Pay-per-Crawl.
Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.
Run your entire startup and digital operations on open-source and generous free-tier software.
The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.
Replace sluggish 1970s Unix utilities with blisteringly fast, memory-safe Rust and Go modern CLI powerhouses.