# Flash of content while "waiting" for redirecting for non auth users

**URL:** <https://community.weweb.io/t/flash-of-content-while-waiting-for-redirecting-for-non-auth-users/3142>\
**Category:** How do I?\
**Created:** [June 20, 2023, 6:21pm UTC](https://community.weweb.io/t/flash-of-content-while-waiting-for-redirecting-for-non-auth-users/3142 "2023-06-20T18:21:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [June 20, 2023, 6:21pm UTC](https://community.weweb.io/t/flash-of-content-while-waiting-for-redirecting-for-non-auth-users/3142/1 "2023-06-20T18:21:09Z")

</div>

I know this is caused by client side rendering, so the redirects are actualy client side too. Would it be possible to “cheat” this with a simple hack? Has anyone found out someting? For Example when I try to access user dashboard, it flashes for a while before it gets redirected to login (if the user is not authenticated)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [June 21, 2023, 10:14pm UTC](https://community.weweb.io/t/flash-of-content-while-waiting-for-redirecting-for-non-auth-users/3142/2 "2023-06-21T22:14:45Z")

</div>

So basically what you gotta do is, **do not use redirects to handle authenticated restrictions** , use the settings in Pages → Select a page → Click on the Gear Icon → Private Access, here you can set up the access to logged in users only. Or in case you have the required plan, you can set this up through User Groups.
