---
title: "Gets custom rules"
method: GET
path: "/1.1/protection/custom-rules"
tags: ["Custom rules"]
---

# Gets custom rules

`GET /1.1/protection/custom-rules`

## Query parameters

- `withoutTraffic` boolean

## Response `200`

Gets the defined custom rules, hits attribute is the number of requests who matched the rule from the last 24 hours.

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/datadome/apis/protection-api.md) · [All operations](https://skmtc.net/datadome/apis/protection-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadome/protection-api/revisions/2576052958eb/schema)
