---
title: "Forwarding Rules - Filter and Route Webhooks | WebhookRelay"
meta:
  "og:description": "Filter and route webhooks based on request body, JSON paths, URL query parameters, URL path, and IP address. Precisely control which webhooks reach each destination."
  "og:title": "Forwarding Rules - Filter and Route Webhooks"
  description: "Filter and route webhooks based on request body, JSON paths, URL query parameters, URL path, and IP address. Precisely control which webhooks reach each destination."
---

![Stripes](https://webhookrelay.com/features/forwarding-rules/images/stripes.svg)

# FEATURES

# **Forwarding Rules - Filter and Route Webhooks**

Filter and route webhooks based on request body, JSON paths, URL query parameters, URL path, and IP address. Precisely control which webhooks reach each destination.

![Forwarding Rules](https://webhookrelay.com/features/forwarding-rules/images/features/forwarding-rules/cover.png)

Take full control over your webhook routing with powerful forwarding rules. Filter incoming webhooks based on multiple criteria and ensure only the relevant requests reach each destination.

## [Supported Filtering Options](#supported-filtering-options)

Webhook Relay forwarding rules support filtering by:

- **Request Body** - Match webhooks based on the raw request body content
- **JSON Paths** - Use JSON path expressions to filter based on specific fields in JSON payloads
- **URL Query Parameters** - Filter based on query string parameters in the webhook URL
- **URL Path** - Route webhooks based on the URL path patterns
- **IP Address** - Allow or block webhooks from specific IP addresses or ranges

## [How to Configure Forwarding Rules](#how-to-configure-forwarding-rules)

Forwarding rules can be configured in the Webhook Relay dashboard:

1. Navigate to your **Bucket Details**
2. Select the **Output** you want to configure
3. Click on **Rules** to add or manage forwarding rules

Each output destination can have its own set of rules, allowing you to route different webhooks to different endpoints based on their content or source.

## [Use Cases](#use-cases)

### [Filter by Event Type](#filter-by-event-type)

Use JSON path filtering to route webhooks based on event types. For example, send only `order.completed` events to your fulfillment service while `payment.failed` events go to your support system.

### [Security Filtering](#security-filtering)

Restrict webhook processing to known IP addresses, ensuring only trusted sources can trigger your workflows.

### [Environment Routing](#environment-routing)

Use URL path or query parameter filtering to route webhooks to different environments (staging, production) based on the incoming request.

### [Selective Processing](#selective-processing)

Combine multiple rules to create sophisticated routing logic. For example, only forward webhooks that contain a specific customer ID in the JSON payload and come from an allowed IP range.

## [Benefits](#benefits)

- **Reduce Noise** - Only forward webhooks that matter to each destination
- **Improve Security** - Block unwanted or suspicious requests at the relay level
- **Simplify Architecture** - Handle routing logic in Webhook Relay instead of your application code
- **Save Resources** - Avoid processing irrelevant webhooks in your backend services

![Stripes](https://webhookrelay.com/features/forwarding-rules/images/stripes-dark.svg)

## **Ship faster with Webhook Relay **

[Start For Free ->](https://my.webhookrelay.com/register)