Turnstile on your forms

About 75 minutesYou need: adjoas-kitchen open in Cursor with npm run dev running, the Cloudflare MCP connected (Lesson 10.5), the Cloudflare and Vercel dashboards, your password manager, Chrome with DevTools, and your phone
This video is in the full courseGet the course to watch every video and read every lesson in full. GHS 399, paid once.Get the course · GHS 399
Video · 18:51
Goal

Create a Cloudflare Turnstile widget (by prompt through the Cloudflare MCP), put it on the order form and the login form, check every token on the server in placeOrder and signIn, use Cloudflare's test keys on your laptop, and prove that a missing or failed token is refused.

Why this matters

Your forms now refuse bad data (Lesson 10.4). But a bot doesn't have to send bad data. It can fill in the order form perfectly: a real-looking name, a real-looking phone number, two plates of jollof, a pickup at 12:30. Then do it again. And again. Five hundred times before Adjoa wakes up. Every one passes your checks, lands in her dashboard and triggers two emails.

The fix is to check that the sender is a person before you do anything else. That's what Cloudflare Turnstile does. For most visitors it takes a second and asks nothing of them. A small box on the form shows a spinning check, then a tick. Bots don't get a tick.

There's one part you must get right, and it's the part beginners most often skip: the check only counts if your server verifies it. A Turnstile box on the page with no server check is a sign saying "Guard on duty" with nobody behind it. In this lesson the widget goes on the page and the server checks every token, and you'll prove both.

In the full lesson

  1. The idea in plain English
  2. Do it
  3. Check it worked
  4. Understand what AI wrote
  5. Quick check
  6. What you can do now
Stage 2 · Make it workYou’ve seen the why. The how is in the course.

The step-by-step, the prompt to copy, the video and the check-it-worked list, for every lesson in all 15 modules. GHS 399 ($40), paid once by mobile money or card, yours to keep.

Get the course · GHS 399See what’s inside
Already have the course? Open the full lesson