Glossary
Form bot: automating what people type into pages
A form bot is any program that fills in and submits HTML forms automatically, whether to test a site, move data between systems, or, in abusive cases, to flood a site with submissions.
Definition
Forms are how websites accept input: logins, searches, contact messages, orders, applications and settings. A form bot takes over the typing and clicking. It can drive a real browser that fills each field and presses the button, or it can skip the page and send the same POST request the form would have sent. Both are form bots; the difference is how much of the page they run.
Legitimate uses
- End to end testing: QA suites submit signup, checkout and contact forms on every build to catch regressions.
- RPA: robotic process automation enters data into supplier portals, government sites or internal tools that have no API.
- Search automation: submitting search forms on public sites to collect listings or prices.
- Accessibility: assistive tools that complete forms for users with limited mobility.
- Monitoring: checking that a critical form still accepts input and returns the expected confirmation.
Abusive uses
The same technique drives spam bots, fake signups, credential stuffing against login forms, voting manipulation and floods of junk leads. These are why many forms carry a CAPTCHA, and they are not allowed uses of GateSolver.
How sites tell form bots apart
| Check | What it catches |
|---|---|
| CSRF token or form nonce | Direct POSTs that never loaded the page |
| Honeypot field | Bots that fill every input blindly |
| Time to submit | Submissions faster than anyone could type |
| Key and pointer events | Values set by code with no typing |
| CAPTCHA token | Clients that cannot produce a valid answer |
| Rate per IP or account | High volume from one source |
Browser driven or request driven
A request driven form bot is fast and light: it fetches the page, copies hidden fields such as the CSRF token, and posts the form data with an HTTP client. It struggles when the page builds values in JavaScript, encrypts fields, or expects events from a real browser. A browser driven bot is slower and heavier, but it runs the page exactly as a visitor would, so tokens, cookies and validation scripts behave normally. Many teams start with a browser, record which requests matter, and switch to direct requests only for forms simple enough to allow it.
Writing a well behaved form bot
Load the page first so cookies and hidden tokens are set. Fill fields through the framework's typing methods rather than writing values directly, leave hidden honeypot inputs empty, and wait a realistic moment before submitting. Check the response for success text instead of assuming the post worked.
Keep a record of each submission and its outcome. Forms change without notice: a field is renamed, a new required checkbox appears, or the confirmation message moves. A log that shows the first failed submission makes these changes quick to spot, and it keeps the bot from sending incomplete data for days unnoticed.
Handling a CAPTCHA on the form
When the form has a widget, read its site key from the page, create a solver task, and put the answer where the widget would. For reCAPTCHA that means the hidden g-recaptcha-response textarea. A Playwright sketch in Python:
import time, httpx
GS_BASE = "https://gatesolver.com"
def solve_v2(page_url, sitekey, key="YOUR_API_KEY"):
with httpx.Client(base_url=GS_BASE, timeout=30) as gs:
job = gs.post("/createTask", json={"clientKey": key, "task": {
"type": "ReCaptchaV2TaskProxyLess", "websiteURL": page_url, "websiteKey": sitekey}}).json()
if job.get("errorId"):
raise RuntimeError(job)
ticket = job["taskId"]
while True:
time.sleep(3)
poll = gs.post("/getTaskResult", json={"clientKey": key, "taskId": ticket}).json()
if poll.get("status") == "ready":
return poll["solution"]["gRecaptchaResponse"]
if poll.get("status") == "failed" or poll.get("errorId"):
raise RuntimeError(poll)
# inside a Playwright session (page already loaded)
# sk = page.get_attribute(".g-recaptcha", "data-sitekey")
# answer = solve_v2(page.url, sk)
# page.evaluate("t => document.getElementById('g-recaptcha-response').value = t", answer)
# page.click("button[type=submit]")
Some forms submit through a JavaScript callback instead of a plain post; in that case you call the callback with the token, as described in CAPTCHA callback. A reCAPTCHA v2 task usually returns under 9 seconds, and you pay only if it is solved.
Common questions
Is every automated form submission a bot attack?
No. Testing, RPA data entry, monitoring and accessibility tools all submit forms automatically and legitimately.
Why does my form bot get rejected without an error?
A missing CSRF token, a filled honeypot field or a submission that was too fast can cause a silent rejection.
Where does the reCAPTCHA token go in a form?
Into the hidden g-recaptcha-response field, or into the page's callback function if the form submits through JavaScript.
Should a form bot post directly or use a browser?
Direct posts are faster but miss tokens and events the page sets; a browser is safer for forms with protection.
Can I automate contact forms on other people's sites?
Not for unsolicited messages or spam; that use is prohibited and harms the site owner.
Keep reading
- Spam botScripts that flood forms, comments and signups with junk, the original problem CAPTCHAs were invented to solve.
- CAPTCHA callback functionThe function a page runs once a widget passes, and why writing the token into a field sometimes changes nothing.
- Robotic process automation (RPA)Software robots that repeat rule based office work across web apps and desktop tools, and the CAPTCHAs they meet on the way.
- CAPTCHAs in automated QA testingHow QA teams keep CAPTCHAs from breaking tests: vendor test keys, guarded staging switches, and real solves where they matter.