# Routes Invert Path against registration

**URL:** <https://community.traefik.io/t/routes-invert-path-against-registration/12329>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [November 3, 2021, 2:04pm UTC](https://community.traefik.io/t/routes-invert-path-against-registration/12329 "2021-11-03T14:04:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![legeiger](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/legeiger/32/4459_2.png) [@legeiger](https://community.traefik.io/u/legeiger)\
**Post date:** [November 3, 2021, 2:04pm UTC](https://community.traefik.io/t/routes-invert-path-against-registration/12329/1 "2021-11-03T14:04:21Z")

</div>

Hello everyone,

I'm having problems using the invertion symbol '!' as described in the router docs:  
[https://doc.traefik.io/traefik/routing/routers/](https://doc.traefik.io/traefik/routing/routers/)

I using cvat with treafik and trying do disable access to CVAT\_HOST/auth/register/  
page because the default setting is, that everyone can register.

Following label for the routes I added to the default docker-compose from [cvat](https://github.com/openvinotoolkit/cvat/blob/develop/docker-compose.yml).

```auto
      - traefik.http.routers.cvat-ui.rule=Host(`${example.com:-localhost}`) && ! PathPrefix(`/auth/register/`)

```

I get the following traefik error:

```auto

time="2021-11-03T14:04:56Z" level=error msg="error while parsing rule Host(`example.com`) && ! PathPrefix(`/auth/register/`): ! is not supported" routerName=cvat-ui@docker entryPointName=websecure
time="2021-11-03T14:04:56Z" level=debug msg="invalid rule Host(`example.com`) && ! PathPrefix(`/auth/register/`), error: ! is not supported" entryPointName=websecure routerName=cvat-ui@docker
time="2021-11-03T14:04:56Z" level=error msg="Error parsing domains in provider ACME: ! is not supported" providerName=lets-encrypt.acme routerName=cvat-ui@docker rule="Host(`example.com`) && ! PathPrefix(`/auth/register/`)"

```

Maybe someone can point me in the right direction?  
Is there any other way to limit access to this specific uri?

Thanks in advance.  
Leander

---

<div class="post-metadata">

**Author:** ![kevinpollet](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/kevinpollet/32/1755_2.png) [@kevinpollet](https://community.traefik.io/u/kevinpollet)\
**Post date:** [November 4, 2021, 11:49am UTC](https://community.traefik.io/t/routes-invert-path-against-registration/12329/2 "2021-11-04T11:49:41Z")

</div>

Hello @legeiger and thanks for your interest in Traefik,

The `!` support has been introduced in Traefik `v2.5` (see [Support not in rules definition by juliens · Pull Request #8164 · traefik/traefik · GitHub](https://github.com/traefik/traefik/pull/8164)) and if I'm not wrong you are using the `v2.4` ([cvat/docker-compose.yml at develop · openvinotoolkit/cvat · GitHub](https://github.com/openvinotoolkit/cvat/blob/develop/docker-compose.yml#L69)).

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [November 7, 2021, 11:50am UTC](https://community.traefik.io/t/routes-invert-path-against-registration/12329/3 "2021-11-07T11:50:18Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
