---
title: "Add filter URL or an absolute file path"
method: POST
path: "/filtering/add_url"
tags: ["filtering"]
---

# Add filter URL or an absolute file path

`POST /filtering/add_url`

## Request

- Base URL: `/control` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/control/filtering/add_url`
- Auth: HTTP basic

## Request body

- AddUrlRequest: /add_url request data
  - `name` string
  - `url` string: URL or an absolute path to the file containing filtering rules.
  - `whitelist` boolean

## Response `200`

OK.

---

[API](https://skmtc.dev/guardllamanet/apis/adguard-home.md) - [All operations](https://skmtc.dev/guardllamanet/apis/adguard-home/llms.txt) - [OpenAPI document](https://skmtc.dev/guardllamanet/apis/adguard-home/revisions/14ff21aeb363?raw)
