---
title: Detect leaked passwords
summary: Detect requests that contain submitted passwords and use a service to determine whether the password has leaked before allowing the request to proceed to origin (data from haveibeenpwned).
url: https://www.fastly.com/documentation/solutions/examples/threat-intelligence-preflight
---

Detect requests that contain submitted passwords and use a service to determine whether the password has leaked before allowing the request to proceed to origin (data from haveibeenpwned).

## VCL

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

## Compute

### Rust

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

### Javascript

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

### Go

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

