
More than half of the traffic on the internet isn’t human. According to the 2026 Imperva Bad Bot Report, bots made up 53% of all web traffic in 2025, and 40% came from bad bots: scripts that scrape, spam, guess passwords and probe for weaknesses.
October’s PHP2Shell vulnerability showed how fast that turns into a real problem. Within hours of disclosure, Cloudflare saw automated attack traffic hitting PHP sites, and attackers kept changing their requests to slip past its rules. Nobody sat at a keyboard picking targets. Bots did it, across every site they could reach.
Since then, more of the site owners I work with have asked how to stop website bots. Two tools do most of the work: a CAPTCHA on your forms, and Cloudflare in front of the whole site. Here’s what each one does, how they fit together, and where setups usually go wrong.
The short version
- Bots spam your forms, attack your login page, scrape your content and scan for weaknesses, all day, every day.
- A CAPTCHA (Google reCAPTCHA or Cloudflare Turnstile) protects forms, logins and checkout.
- Cloudflare filters bad traffic before it reaches your server, across the whole site.
- Set up carelessly, both can block real customers, break integrations or hide your site from Google. Test everything.
What bots actually do on your website
Not all bots are bad. Googlebot and Bingbot crawl your site so it can appear in search results, and you want them. Uptime monitors and SEO tools are bots too. The problem is everything else:
- Form spam. Contact, quote and newsletter forms fill up with junk, links and phishing attempts. Real enquiries get buried, and your email domain’s reputation suffers when the site sends replies to fake addresses.
- Login attacks. Bots try thousands of leaked username and password pairs against
wp-login.phpandxmlrpc.php. One reused password is all they need. - Vulnerability scanning. Bots request known plugin files, backup files and config paths, looking for anything outdated or exposed. This is how a new flaw like PHP2Shell gets exploited at scale.
- Scraping. Your content, prices, product data, team names and email addresses are copied and reused, often by competitors or spammers.
- Fake accounts and orders. On membership and WooCommerce sites, bots register junk accounts and run stolen cards through checkout to test which ones work. You pay the fees and the chargebacks.
- Load. Heavy bot traffic uses up server resources, slows the site for real visitors and can push you onto a bigger hosting plan.
Then there are AI crawlers, which collect content to train models or answer questions in AI tools. They aren’t malicious, but whether you allow them is a business decision. Being visible in AI answers can bring traffic, while letting your content be used for training may not suit you.
Signs bots are already hitting your site
- Spam form submissions, often with links or nonsense text
- New user accounts you didn’t expect, with random names or email addresses
- Failed login alerts from a security plugin, often hundreds a day
- Small failed or declined orders in quick succession
- Traffic spikes in analytics that bring no enquiries or sales
- Server logs full of requests for pages and files that don’t exist
- Your host warning about CPU or resource limits
What a CAPTCHA does: reCAPTCHA vs Turnstile
A CAPTCHA checks that a person, not a script, is submitting a form. The old kind made you type wobbly letters. Modern ones mostly work in the background: they look at signals from the browser and only show a challenge when something seems off. Most real visitors never see a puzzle.
The two main options for most business sites:
| Google reCAPTCHA | Cloudflare Turnstile | |
|---|---|---|
| Cost | Free up to 10,000 checks a month across your Google Cloud organisation, then $8 a month flat up to 100,000 | Free, with unlimited checks (up to 20 widgets per account) |
| What visitors see | v3 is invisible and gives each visit a score; v2 shows a checkbox and sometimes image puzzles | Usually nothing, or a single checkbox |
| Needs Cloudflare? | No | No, it works on any site |
| Worth checking | The monthly limit on busy sites, and Google’s terms in your privacy policy | Support in your form plugin (most popular ones have it) |
For most small and mid-sized sites I’d start with Turnstile: it’s free, quiet for visitors and doesn’t count towards a monthly limit. reCAPTCHA is a good fit if you already use Google Cloud, or if your form or e-commerce plugin works best with it. Either is far better than nothing.
Where to put it
Not just the contact form. Bots go wherever a form accepts input:
- Contact, quote and booking forms
- The WordPress login, registration and lost-password pages
- WooCommerce checkout and account registration
- Newsletter sign-ups and comment forms
What Cloudflare adds
A CAPTCHA protects individual forms. Cloudflare sits in front of your entire site, so bad traffic is filtered before it reaches your server at all. On the free plan you get:
- A web application firewall (WAF) with managed rules for known attacks. For PHP2Shell, Cloudflare had protection running for free-plan sites before the flaw was even made public.
- Bot Fight Mode, which spots traffic matching known bot patterns and makes it solve expensive challenges
- Custom rules and rate limiting, for example challenging repeated requests to
wp-login.phpor blockingxmlrpc.phpif you don’t use it - AI crawler controls, letting you allow or block AI crawlers by purpose: search, agents or model training
- Caching and a CDN, which make the site faster for real visitors and lighten the load bots put on your server
Cloudflare only protects traffic that passes through it. If your server’s IP address is public, bots can go straight to it and skip Cloudflare entirely. A proper setup restricts the server to accept web traffic from Cloudflare only.
Why you need both
They solve different problems. Cloudflare stops known bad traffic and floods at the edge, across the whole site. A CAPTCHA catches the bots that look normal enough to get through, at the exact moment they try to submit something. Add basic WordPress hardening (two-factor login, strong unique passwords, up-to-date plugins) and you have layers that back each other up, so one gap doesn’t let everything through.
Benefits of CAPTCHA and Cloudflare
- Clean leads. Real enquiries stop getting lost in spam, and your team stops wasting time sorting through it.
- Fewer break-ins. Login attacks and automated exploits are blocked before they get a chance.
- Less fraud. Card testing and fake accounts drop, along with their fees and chargebacks.
- A faster site. Less junk traffic leaves more server capacity for customers, and caching speeds up every page.
- Accurate analytics. When bots are filtered out, your visitor numbers and conversion rates mean something.
- Control over your content. You decide who can scrape it, including AI crawlers.
The trade-offs to manage
Bot protection isn’t free of side effects, and it’s worth being honest about them:
- Friction for real people. A visible puzzle at checkout costs sales. Invisible or low-friction options keep that to a minimum.
- False positives. Visitors on VPNs, privacy browsers or shared networks are sometimes challenged or blocked.
- Accessibility. Image puzzles are hard for some users. Choose options that offer accessible alternatives.
- Privacy. CAPTCHA services process visitor data, so mention them in your privacy policy and check how they fit with your cookie consent setup.
Common bot protection mistakes
Adding a CAPTCHA plugin and switching on Cloudflare takes ten minutes. Getting it right takes longer. These are the problems I see most often when I’m called in to fix a setup:
- Only the contact form is protected, while login, registration and checkout are left open.
- Forms stop sending, because a cached page serves an expired CAPTCHA token, or the keys were set up for the wrong domain. Everything looks fine until someone notices the enquiries have stopped.
- reCAPTCHA v3 is installed with no threshold, so it scores every visitor and then blocks nobody.
- Integrations break. Over-strict bot rules challenge payment gateway webhooks, CRMs, Zapier or mobile apps, which can’t solve a challenge. Orders go unconfirmed and leads go missing.
- Search engines get blocked. A rule that challenges all bots, or a blanket block, can stop Googlebot crawling the site. Rankings drop weeks later and nobody connects the two.
- The server is left open, so attackers bypass Cloudflare by going straight to its IP address.
None of these show up as an error on the page. That’s why it’s worth having someone set it up who tests every form end to end, checks every integration after the change, and confirms in Search Console that Google can still crawl the site.
Bot protection checklist
- Turnstile or reCAPTCHA on every form, plus login, registration and checkout
- A test submission sent and received on every form after setup
- Cloudflare in front of the site, with the WAF on and the origin server locked to Cloudflare traffic
- Login page rate-limited or challenged, and
xmlrpc.phpblocked if unused - Webhooks and integrations tested: payments, CRM, email, automations
- Search engines allowed, and crawling confirmed in Google Search Console
- A decision made on AI crawlers, by purpose
- Privacy policy updated to mention the CAPTCHA service
- Two-factor login for administrators, and WordPress, plugins and PHP kept up to date
Sources
- Imperva: Bad Bot Report 2026
- Cloudflare: protections against php2shell
- Google Cloud: reCAPTCHA tiers and pricing
- Cloudflare: Turnstile plans
- Cloudflare: Bot Fight Mode
Frequently asked questions
Will adding a CAPTCHA hurt my SEO?
No, as long as it’s only on forms. Search engines read your pages; they don’t submit forms. SEO problems come from blocking or challenging crawlers across the whole site, which is a configuration mistake, not something CAPTCHAs do on their own.
Should I use Google reCAPTCHA or Cloudflare Turnstile?
For most small and mid-sized sites, Turnstile: it’s free with unlimited checks and is usually invisible to visitors. reCAPTCHA is free up to 10,000 checks a month and suits sites already using Google Cloud, or plugins built around it.
Is the free Cloudflare plan enough?
For most business websites, yes. The free plan includes a WAF with managed rules, Bot Fight Mode, custom rules, AI crawler controls and caching. Busy stores or sites under targeted attack may need a paid plan for finer bot controls.
Doesn’t robots.txt already stop bots?
No. robots.txt is a polite request that well-behaved crawlers like Googlebot follow. Bad bots ignore it, and some read it to find the pages you’d rather they didn’t.
Do I still need a CAPTCHA if I use Cloudflare?
Yes. Cloudflare filters known bad traffic across the site, but some bots look human enough to get through. A CAPTCHA on forms, logins and checkout catches them at the point where they’d do damage.
Should I block AI crawlers?
It depends on your business. Allowing AI search crawlers can help you appear in AI answers, while blocking training crawlers keeps your content out of model training. Cloudflare lets you decide per purpose rather than all or nothing.
Need bot protection set up properly?
I add Turnstile or reCAPTCHA to WordPress and WooCommerce sites, set up Cloudflare with the right rules, lock the server down, and test every form, integration and search crawler afterwards so nothing quietly breaks. See how my WordPress maintenance and support works or get in touch.