# Remove root protection

**URL:** <https://community.auth0.com/t/remove-root-protection/8137>\
**Category:** Get Help\
**Tags:** routes, auth\_openidc, configuration\
**Created:** [September 8, 2017, 10:35pm UTC](https://community.auth0.com/t/remove-root-protection/8137 "2017-09-08T22:35:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![schwesh724](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@schwesh724](https://community.auth0.com/u/schwesh724)\
**Post date:** [September 8, 2017, 10:35pm UTC](https://community.auth0.com/t/remove-root-protection/8137/1 "2017-09-08T22:35:10Z")

</div>

I currently have the `auth_openidc` configured to protect everything at the root `/*`. However, there are routes that I do not want to protect. When I add the routes I want to protect & remove the `/*` protection, auth0 doesn’t challenge anymore at all, it’s like it only works at root. Here is how my locations are set currently:

```
   AuthType openid-connect
   Require valid-user
   LogLevel debug
   OIDCUnAuthAction 401

   AuthType openid-connect
   Require valid-user
   LogLevel debug

```

How can I configure `auth_openidc` so it protects only the routes I specify and not root?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/remove-root-protection/8137/2 "2018-03-02T05:56:24Z")

</div>


