Cloudfest Conference 2025

Use code HH20 for 20% off an event ticket!

Yesterday's Top Poster

Web Application Firewall control now available with vercel.json

  • Thread starter Thread starter Charlie Meyer
  • Start date Start date
You can now control Vercel’s Web Application Firewall (WAF) actions directly in vercel.json, alongside existing support in the dashboard, API, and terraform.

The has and missing matchers have also been enhanced to support more expressive conditions across headers, rewrites, redirects, and routes. Matching options include:


  • String equality and inequality


  • Regular expressions


  • Prefixes and suffixes


  • Inclusion and exclusion from string arrays


  • Numeric comparisons

The following example shows how to deny a request that is prefixed by a specific header:


Read more about Vercel's WAF and configuring WAF rules in vercel.json.

Read more

Continue reading...
 
Back
Top