How to secure a dynamic page from unauthorised access

Anybody done this sort of security technique before? I would imagine it’s a common enough security issue?