Vercel Blog

Instantly redirect traffic using custom Vercel Firewall rules

thumbnail

Table of Contents

  1. Introduction
  2. Using Custom Vercel Firewall Rules
  3. Benefits of Custom Rule Redirects
  4. Summary

Introduction

Custom Vercel Firewall rules allow for instantaneous redirection of traffic without the need for a new deployment. These rules can be used to redirect requests to a new page, complementing existing challenge and block actions.

Using Custom Vercel Firewall Rules

Custom rule redirects provide a quick alternative to Edge Network redirects, especially in urgent scenarios. They are applied instantly across the global Vercel Edge Network without requiring a new deployment. The redirects take precedence over Edge Network configuration redirects such as vercel.json or next.config.js.

Benefits of Custom Rule Redirects

  • Immediate redirection of traffic
  • No deployment needed
  • Can be used for emergency situations
  • Precedes Edge Network redirects
  • Available for free on all Vercel plans

Summary

Custom Vercel Firewall rules offer a fast and efficient way to redirect traffic in real-time. By leveraging custom rules, users can seamlessly redirect requests to new pages without any deployment overhead, making it a valuable tool for handling immediate redirection needs.