---
title: Apply CAPTCHA to high risk requests
summary: Intercept suspicious traffic and display a CAPTCHA challenge. If the user passes, allow the request to go to the origin server.
url: https://www.fastly.com/documentation/solutions/examples/captcha-challenge
---

Intercept suspicious traffic and display a CAPTCHA challenge. If the user passes, allow the request to go to the origin server.

## VCL

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

## Compute

### Rust

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

### Javascript

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

