# Generate 403 on specific path

**URL:** <https://community.traefik.io/t/generate-403-on-specific-path/1566>\
**Category:** Traefik v1\
**Tags:** kubernetes-ingress\
**Created:** [September 12, 2019, 12:26pm UTC](https://community.traefik.io/t/generate-403-on-specific-path/1566 "2019-09-12T12:26:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AtzeDeVries](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/atzedevries/32/2085_2.png) [@AtzeDeVries](https://community.traefik.io/u/AtzeDeVries)\
**Post date:** [September 12, 2019, 12:26pm UTC](https://community.traefik.io/t/generate-403-on-specific-path/1566/1 "2019-09-12T12:26:41Z")

</div>

Hi,

I'm trying to make let Traefik return a status 403 if a certain path is requested. For now i have a annotation with

```auto
 annotations:
    traefik.ingress.kubernetes.io/whitelist-source-range: "0.0.0.0/32"

```

Which works but i don't think this is the best way. Does anybody have a more clever solution for this?
