From ae54db0acc6bb31549b9f466f93abf38cfb26437 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sat, 14 Nov 2026 10:48:31 +0000 Subject: [PATCH] x402-gateway 0.18: x402 every anonymous page load during a mass scrape Gateway 0.18 massScrape (on by default): past 60 anonymous page loads a minute site-wide, every anonymous page load is answered 402 with the x402 offer for 30 minutes; one address past 120 an hour pays too. Runs before exempt (a present-but-unverified session cookie no longer passes); passes, Power Keys, verified authenticate, welcome crawlers, /, sign-in and app paths still read. Refusals are reported to CrawlProof as bot:swarm. Co-Authored-By: Claude Opus 5.5 --- apps/web/package.json | 2 +- pnpm-lock.yaml | 25 +++++++++++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index 6c10b8d7..3bd4e61c 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -31,7 +31,7 @@ "@profullstack/profile": "0.1.8", "@profullstack/redeem-credits": "^0.2.0", "@profullstack/stack": "^0.5.0", - "@profullstack/x402-gateway": "^0.13.1", + "@profullstack/x402-gateway": "^0.18.0", "@serwist/next": "^9.5.13", "@supabase/ssr": "^0.12.7", "@supabase/supabase-js": "^2.118.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 79179cab..390f84dd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -399,7 +399,7 @@ importers: version: 1.0.3 '@profullstack/footer': specifier: latest - version: 0.6.15(react@19.3.1) + version: 0.6.19(react@19.3.1) '@profullstack/live-translate': specifier: ^0.3.0 version: 0.3.0 @@ -422,8 +422,8 @@ importers: specifier: ^0.5.0 version: 0.5.0(@supabase/ssr@0.12.7(@supabase/supabase-js@2.118.0(@opentelemetry/api@1.10.0)))(next@16.4.3(@opentelemetry/api@1.10.0)(@types/node@24.19.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1) '@profullstack/x402-gateway': - specifier: ^0.13.1 - version: 0.13.1 + specifier: ^0.18.0 + version: 0.18.0 '@serwist/next': specifier: ^9.5.13 version: 9.5.13(next@16.4.3(@opentelemetry/api@1.10.0)(@types/node@24.19.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1)(typescript@5.9.3) @@ -2146,7 +2146,7 @@ packages: '@expo/bunyan@4.0.1': resolution: {integrity: sha512-+Lla7nYSiHZirgK+U/uYzsLv/X+HaJienbD5AKX1UQZHYfWaP+9uuQluRB4GrEVWF0GZ7vEVp/jzaOT9k/SQlg==} - engines: {'0': node >=0.10.0} + engines: {node: '>=0.10.0'} '@expo/cli@0.22.28': resolution: {integrity: sha512-lvt72KNitGuixYD2l3SZmRKVu2G4zJpmg5V7WfUBNpmUU5oODBw/6qmiJ6kSLAlfDozscUk+BBGknBBzxUrwrA==} @@ -2835,16 +2835,19 @@ packages: '@nut-tree-fork/libnut-darwin@2.7.5': resolution: {integrity: sha512-LbqtPtMPTJUcg4XoPP2jsU1wc8flBcGyKTerKsIfK9cD7nBHROnO0QksbrsbSWEpLym8T8fRtuU7XEY83l6Z2Q==} engines: {node: '>=10.15.3'} + cpu: [x64, arm64] os: [darwin, linux, win32] '@nut-tree-fork/libnut-linux@2.7.5': resolution: {integrity: sha512-uxaXEcRKnFObAljsoR6tLOBUU1dJ2sctloG6gFgCBGN7+k6Jdv6jZfOuNjd/fpdq2C5WPMm0rtn9EE7h5J3Jcg==} engines: {node: '>=10.15.3'} + cpu: [x64, arm64] os: [darwin, linux, win32] '@nut-tree-fork/libnut-win32@2.7.5': resolution: {integrity: sha512-yqC87zvmFcDPwFrRU40DYhN0xmEVM3aSkOuyF0IX+y1x+HWSu/i0PNklATpPBhGid3QVb/TOHuVoaraMrUFCNw==} engines: {node: '>=10.15.3'} + cpu: [x64, arm64] os: [darwin, linux, win32] '@nut-tree-fork/libnut@4.2.6': @@ -2858,6 +2861,7 @@ packages: '@nut-tree-fork/nut-js@4.2.6': resolution: {integrity: sha512-aI/WCX7gE1HFGPH3EZP/UWqpNMM1NMoM/EkXqp7pKMgXFCi8e5+o5p+jd/QOYpmALv9bQg7+s69nI7FONbMqDg==} engines: {node: '>=16'} + cpu: [x64, arm64] os: [linux, darwin, win32] '@nut-tree-fork/provider-interfaces@4.2.6': @@ -3010,8 +3014,8 @@ packages: react: optional: true - '@profullstack/footer@0.6.15': - resolution: {integrity: sha512-kkkSG8Xw0VnyzYk76ko0aiIgVT/MXmKkKUiJ5u1DZkeLZcDh0d2GjFShwTcCd8AsQr5fBet39wbzSwPeUYwuWg==} + '@profullstack/footer@0.6.19': + resolution: {integrity: sha512-DAS2jHDJFnH1w6lDtYbEnvuV2n4NY2vrRwnUKeQPC+Nwfg1f2Me9ClZ6KlXs6Dv0pgJSg2ATLSX0hV+Mq7co3w==} engines: {node: '>=18'} hasBin: true peerDependencies: @@ -3094,8 +3098,8 @@ packages: react: optional: true - '@profullstack/x402-gateway@0.13.1': - resolution: {integrity: sha512-V7liSO0tShZRlp8dancuDuUSF/rqrr5YF3bzLoZy9wn6ixf1RIRPYTepe72s36JOdSVzi3wfuhaZFm9y0RpV4w==} + '@profullstack/x402-gateway@0.18.0': + resolution: {integrity: sha512-+vORJd17QpLycouk0wrmyOlnyv+6Q9Ttxk+iglsMH2pZpejTUD2Ak3ysKxQsb94R4m1GLSEv8DHoCS49Nf4/0A==} engines: {node: '>=20.11'} '@radix-ui/react-compose-refs@1.0.0': @@ -7410,6 +7414,7 @@ packages: node-abort-controller@3.1.1: resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==} + deprecated: This package is no longer needed on supported Node.js versions. Node.js 16+ includes AbortController and AbortSignal as built-in globals. All Node.js versions requiring this polyfill are end-of-life. Use the built-in globals instead. node-addon-api@5.0.0: resolution: {integrity: sha512-CvkDw2OEnme7ybCykJpVcKH+uAOLV2qLqiyla128dN9TkEWfrYmxG6C2boDe5KcNQqZF3orkqzGgOMvZ/JNekA==} @@ -12561,7 +12566,7 @@ snapshots: optionalDependencies: react: 19.3.1 - '@profullstack/footer@0.6.15(react@19.3.1)': + '@profullstack/footer@0.6.19(react@19.3.1)': optionalDependencies: react: 19.3.1 @@ -12604,7 +12609,7 @@ snapshots: next: 16.4.3(@opentelemetry/api@1.10.0)(@types/node@24.19.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) react: 19.3.1 - '@profullstack/x402-gateway@0.13.1': + '@profullstack/x402-gateway@0.18.0': dependencies: '@profullstack/keys': 0.1.0