Fixing loopholes with restricting access to pages.