# HttpProtectOptions.ttl property · @imqueue/http-protect

Source: https://imqueue.org/api/http-protect/latest/http-protect.httpprotectoptions.ttl/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/http-protect 3.0.1 — generated reference, not hand-written

Seconds of silence from an address before its request counter is forgotten.

**Signature:**

```typescript
ttl?: number;
```

## Default Value

`10`

## Remarks

Read it as an idle timeout rather than a window length. The counter's TTL is pushed back to this value on every request from that address, so the count survives for as long as the address keeps making requests and is discarded only after a full `ttl` with none. A client that never pauses that long is counted cumulatively until it reaches [HttpProtectOptions.maxRequests](https://imqueue.org/api/http-protect/latest/http-protect.httpprotectoptions.maxrequests/) and then [HttpProtectOptions.banLimit](https://imqueue.org/api/http-protect/latest/http-protect.httpprotectoptions.banlimit/), no matter how slowly it goes.

Also settable as `HTTP_PROTECT_TTL`; a value passed here wins. Both are read once, in the constructor.

