restricting access for nonvisible pages