---
title: Follow redirects at the edge
summary: Protect clients from redirects by chasing them internally at the edge, and then return the eventual non-redirect response.
url: https://www.fastly.com/documentation/solutions/examples/follow-redirects-at-the-edge
---

Protect clients from redirects by chasing them internally at the edge, and then return the eventual non-redirect response.

## VCL

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

## Compute

### Rust

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

### Javascript

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

### Go

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

