---
title: querystring.filter
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/query-string/querystring-filter
---

```
STRING querystring.filter(STRING url, STRING names)
```

**Available in:** all subroutines

Returns the given URL without the listed parameters.

## Example

```vcl
set req.url = querystring.filter(req.url,
    "utm_source" + querystring.filtersep() +
    "utm_medium" + querystring.filtersep() +
    "utm_campaign");
```
