Protect your forms
/turnstile/tutorials/login-pages
Mở tutorial / guide ↗ Open tutorial / guide ↗Phần 4: Vận hành và bước tiếp Part 4: Operate and level up · Bài 2/2 Lesson 2/2
Chống bot trên đăng ký workshop, contact form. Verify token server-side trước khi ghi D1. Stop bots on workshop signup and contact forms. Verify tokens server-side before writing to D1.
Turnstile thay CAPTCHA khó chịu — bảo vệ form public mà UX tốt hơn. Turnstile replaces painful CAPTCHAs — protects public forms with better UX.
Secret Turnstile và credential khác lưu bằng `wrangler secret put`, không đặt trong source hay client build. Chỉ biến `PUBLIC_*` được embed phía client. Store Turnstile secrets and other credentials with `wrangler secret put`, not in source or client builds. Only `PUBLIC_*` variables belong in the client.
Nguồn: Source: Workers Best Practices Workers Best Practices ↗
Tutorial, solution guide và reference từ developers.cloudflare.com/resources ↗ — gợi ý theo chủ đề bài học. Tutorials, solution guides, and reference docs from developers.cloudflare.com/resources ↗ — matched to this lesson topic.
/turnstile/tutorials/login-pages
Mở tutorial / guide ↗ Open tutorial / guide ↗/use-cases/solutions/protect-sensitive-forms-fraud-abuse
Mở tutorial / guide ↗ Open tutorial / guide ↗/pages/tutorials/add-a-react-form-with-formspree
Mở tutorial / guide ↗ Open tutorial / guide ↗/pages/tutorials/add-an-html-form-with-formspree
Mở tutorial / guide ↗ Open tutorial / guide ↗