Implement client-side route protection.