I know this has been requested in all sort of forms.
Can you consider the option to set some type of workflow type on page that if evaluated to false doesn’t load anything on screen?
It’s easy to spot the problem in the design when running the debug mode. As a test I’ve set up a workflow in 404 page that if current user is not logged in it will redirect to index. It’s the only workflow on this page and the page is quite simple. Just the 404 standard text.
When the breakpoint triggers it displays the content of the page before evaluating the condition of the workflow.
This means that network issues are an issue with regards to security. If the connection between server and my laptop broke before evaluating the workflow anyone can see the contents. When I have a slow connection to internet I can see briefly for a few seconds the contents before the redirect kicks in.
Implementing something like this would be a life and time saver for all of us as we wouldn’t have to implement workarounds to manage correctly security/access.
Hopefully now that the team is bigger you can look into this.