This is difficult.

Before we developed a program, which will detect if there is a portal. When a portal is detected, it will disable vpn and dns encryption etc. and make sure the portal page can pop up.

But eventually didn’t use that because of the efficiency.