Skip to content
Free website migration on every plan, done by our team.Learn more ›
Security

Bad bots: how to spot and block them

Tell good bots from bad ones, spot scraping, spam and credential-stuffing bots in your logs, and block them without hurting real visitors.

Short answer: Good bots, like search engine crawlers, help your site; bad bots scrape content, spam forms, test passwords and waste server resources. Spot them through unusual traffic patterns, then block them with rate limits, a web application firewall, form protection and, if needed, a CDN's bot filtering.

Good bots vs bad bots

GoodBad
Search engine crawlersContent scrapers
Uptime monitorsComment and form spammers
Link preview fetchersCredential-stuffing tools

Signs of bad bot traffic

  • Sudden spikes from many unrelated IPs.
  • Hundreds of requests to login, search or cart pages.
  • Analytics showing visits with zero engagement.
  • Server resource limits being hit without real sales or enquiries.

How to block them

  1. Rate limiting on login and search pages.
  2. A web application firewall. See WAF.
  3. Form protection with honeypots or invisible challenges. See stopping comment spam.
  4. CDN bot filtering. See putting your site behind Cloudflare.

Don't block the good ones

Check before blocking user agents that belong to search engines; blocking them can remove your site from results.

Frequently asked questions

Can robots.txt stop bad bots?

No. Bad bots ignore it. See robots.txt.

Do bots affect my analytics?

Yes. Filtering bot traffic gives you more accurate numbers.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.