I'm building a web app (in PHP) that allows to assign HTML resources (HTML pages) to users. A user should only be able to access pages assigned to him. The problem is that if a user gets URLs to these pages and then i revoke his permission to that page, he will still be able to access it.
Is there some way to only allow these HTML pages to load from an iframe in my app (in my domaine for example..) ? this way i will do the needed checks in my web app, and load the page in an iframe if the user has access otherwise, no one can access it.