native function to restrict content behind a password protected page.