Try to get a write through
The form below is protected the same way your comment box or signup form would be. Fill it in and press Send. The check runs in the background while you type, and the send goes through. Then call the same endpoint the way a script would, with no pass, and watch the server refuse it.
Contact
Protected as a write.
Accepted · 200
Without a pass
The same endpoint, called with no pass. This is what an automated client gets on its first try.
$ curl -X POST https://attackfee.dev/demo/contact -d "message=hi" 403 {"error": "attackfee_required", "challenge": { ... }}
This demo checks writes only. It takes no payment. What you type is checked and then thrown away: it is never stored, echoed, emailed or logged.
Run the full demo on your own machine
The hosted demo has one form. The local demo has more of them, plus a load test and the agent path.
- Get a copy of the repo and install it with Node 22.18 or newer:
npm install. - Start it:
npm run demo. It opens on http://localhost:8787. - The forms page has a contact form and a comment thread, both checked as writes, and a search box that posts its query, checked as a search.
- The hammer page at
/hammerfires 50 writes at the contact endpoint, first as a script that skips the check, then through the page's background worker, so you can compare the two. - With the demo running,
npm run agent-pay -- --writes 5shows the paid agent path against a local test backend. No real money moves on the local demo's test backend.
To try the memory-hard mode locally, start the demo with the work mode set to hardened, as described in the README.