---
title: Bot detection using ratecounter
summary: Rate counters are normally used for detecting high volume DoS-style attacks, but you can also use them to measure lower rates, to ensure that navigation between pages is happening at human speed.
url: https://www.fastly.com/documentation/solutions/examples/bot-detection-using-ratecounter
---

Rate counters are normally used for detecting high volume DoS-style attacks, but you can also use them to measure lower rates, to ensure that navigation between pages is happening at human speed.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/880b1a88)

