---
title: Check validity of inputs using a non-crypto hash
summary: Block or identify syntactically invalid requests at the edge by using a hash function of your choice.
url: https://www.fastly.com/documentation/solutions/examples/check-validity-of-inputs-using-a-non-crypto-hash
---

Block or identify syntactically invalid requests at the edge by using a hash function of your choice.

## VCL

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

## Compute

### Rust

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

### Javascript

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

