Very basic auth mechanism to check if the page being loaded is one you allow access to and under what conditions