A sudden spike in visitors from an unexpected country, all leaving after zero seconds, is rarely good news. Bots and spam pollute analytics data and lead to wrong decisions. Fortunately they are usually easy to recognise.
Signs of bot traffic
| Sign | Likely cause |
|---|---|
| Spike of visits to one page, no engagement | Scraper or monitoring bot |
| Unknown referral domains you never linked with | Referral spam |
| Unusual screen resolution or browser version for all visits | Automated browser |
| Traffic from one data centre city at odd hours | Bots running in the cloud |
| Form submissions with nonsense | Spam bots (see form spam) |
Filtering
- Enable the built-in bot filtering of your analytics tool (GA4 does this automatically; Matomo has settings).
- Exclude your own visits and your developers’ IP addresses.
- Create segments that exclude zero-engagement sessions when analysing behaviour.
- Do not click on spam referrer domains – some lead to malicious sites.
Bots in your logs
Server logs show all bots, including search engines and AI crawlers. Use them to check crawl activity and identify abusive bots (see server log analysis). Block harmful bots at the CDN or firewall level.
Frequently asked questions
Do AI crawlers show up in my analytics?
Usually not in JavaScript-based analytics, because most crawlers do not run scripts. They do appear in server logs.
Can bot traffic hurt my site?
Heavy bot traffic can slow your server and inflate bandwidth costs. Malicious bots look for vulnerabilities. Use rate limiting or a firewall for those.