# Page-level Access Control

**URL:** <https://community.auth0.com/t/page-level-access-control/79043>\
**Category:** Get Help\
**Created:** [March 1, 2022, 12:31am UTC](https://community.auth0.com/t/page-level-access-control/79043 "2022-03-01T00:31:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![milotis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/milotis/32/33224_2.png) [@milotis](https://community.auth0.com/u/milotis)\
**Post date:** [March 1, 2022, 12:31am UTC](https://community.auth0.com/t/page-level-access-control/79043/1 "2022-03-01T00:31:22Z")

</div>

Would adding page-level access control functionality to my site (not for an API call) require using a Regular Web App application? Based on what I read from [authorization with Python](https://auth0.com/docs/quickstart/backend/python/01-authorization), I wonder if it could be accomplished with a SPA, but think it might require extra redirects to get and pass information on?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 1, 2022, 4:52pm UTC](https://community.auth0.com/t/page-level-access-control/79043/3 "2022-03-01T16:52:48Z")

</div>

Hi @milotis,

You can add protected routes to SPAs. Here is an example in React:

> **[The Complete Guide to React User Authentication with Auth0](https://auth0.com/blog/complete-guide-to-react-user-authentication/#Protecting-Routes)**
>
> Learn how to add user authentication to React using Context and Hooks. Learn the core concepts of React authentication.

---

<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 16, 2022, 4:53pm UTC](https://community.auth0.com/t/page-level-access-control/79043/4 "2022-03-16T16:53:26Z")

</div>

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