Creating a custom block page

Hello

I would like to create a custom block page instead of the “app access is locked” page.

Another alternative - instead of blocking access to an app, redirect the user to my own page if he can’t access it.

How can I do either of these?

I think there is an option to create a custom error page, where you should be able to customize an error message/look