# Protecting docs feedback and helpful buttons

A "Was this helpful?" button or a short docs feedback form is a write if it stores a vote, a score, or a comment. Those controls look small, but an unprotected route can be called far faster than a person would press the button, and the stored count can stop meaning much. Mark the write, check the pass, and leave the article itself free to read.

If the control is a form, add `data-attackfee="write"` and load `attackfee.js` from your own origin, then check the pass on the server before you record the vote. If the control posts from JavaScript, the route is still a write. The page script can attach a pass to that request. You still have to check the pass on the server.

Do not put a pass on reading the docs. Page views, Markdown twins, and other GET reads stay free. Attackfee is not a way to hide documentation from crawlers or answer engines. It is a way to put a cost on the write that records feedback.

## Where Attackfee fits

See [How to keep docs and reads open](/learn/limits/how-to-keep-docs-and-reads-open), [A docs site open to crawlers](/learn/agents/a-docs-site-open-to-crawlers), and [How to add Attackfee to a form created in JavaScript](/learn/concepts/how-to-add-attackfee-to-a-form-created-in-javascript).

- [Attackfee](/)
- [Learn](/learn)
- [Write surfaces](/learn/write-surfaces)
- [Protecting docs feedback and helpful buttons](/learn/write-surfaces/docs-feedback-and-helpful-buttons)

## Related

- [How to keep docs and reads open](/learn/limits/how-to-keep-docs-and-reads-open)
- [A docs site open to crawlers](/learn/agents/a-docs-site-open-to-crawlers)
- [Why reading should stay free](/learn/concepts/why-reads-should-stay-free)
- [How to add Attackfee to a form](/learn/concepts/how-to-add-attackfee-to-a-form)
- [Protecting a contact form](/learn/write-surfaces/contact-forms)
- [How to read Attackfee pages as Markdown](/learn/agents/how-to-read-attackfee-pages-as-markdown)
- [Widget](/docs/widget)

## Questions



### "Is a helpful vote really a write?"

"Yes, if the request stores or changes a count. A GET that only reads the page is not a write and should stay free."

### "Will this block people or programs from reading the docs?"

"No. Reading stays free, including Markdown twins and ordinary crawlers on read routes. Only the vote or feedback route needs a pass."

### "What if the button posts with JavaScript instead of a form?"

"The route still needs a pass. Load attackfee.js and use the page script's fetch helper, or have the client present a pass another documented way. You still check on the server."

### "Do people pay to vote?"

"No. People never pay money. Their browser earns a work pass in the background."
