Skip to content
New Project

Vercel Edge Middleware examples

Browse examples of how to use and apply Vercel Edge Middleware.

Templates Gallery

  • Bot Detection with Botd thumbnail

    Bot Detection with Botd

    Botd is a browser library for bot detection. In this template we'll be using it alongside botd-integrations for bot detection at the edge.

  • Bot Protection with DataDome thumbnail

    Bot Protection with DataDome

    DataDome can provide real-time bot protection and other security protections to any website. In this template we'll be using it at the edge.

  • i18n in Edge Middleware thumbnail

    i18n in Edge Middleware

    This template shows how to redirect users based on i18n configuration.

  • Geolocation in Edge Middleware thumbnail

    Geolocation in Edge Middleware

    Learn how to use visitor's location at the edge.

  • Vercel Edge Middleware Rate Limit thumbnail

    Vercel Edge Middleware Rate Limit

    Add rate limiting to your application with any frontend framework.

  • Filtering Query Parameters thumbnail

    Filtering Query Parameters

    Learn how to filter query params in Edge Middleware.

  • Modifying Request Headers in Middleware thumbnail

    Modifying Request Headers in Middleware

    Learn to add/update/delete request headers in a middleware.

  • Hostname Rewrites using Edge Middleware thumbnail

    Hostname Rewrites using Edge Middleware

    Learn how to programmatically create unique content pages for your users with a multi-tenant infrastructure using Edge Middleware.

  • Adding Cookies thumbnail

    Adding Cookies

    Read and write cookies directly at the edge.

  • Adding Response Headers in Edge Middleware thumbnail

    Adding Response Headers in Edge Middleware

    Learn to add response headers at the edge.

  • IP Blocking with Upstash thumbnail

    IP Blocking with Upstash

    Template featuring IP Blocking at the edge using Upstash.

  • IP Blocking with DataDome thumbnail

    IP Blocking with DataDome

    DataDome can provide real-time bot protection, ip blocking, custom rules protection and other security protections to any website.