Great question!

A VPN would work great in this situation. Since you are connecting to another persons WiFi, using a VPN will protect your personal data by keeping it private and encrypted. There is no need to access or change any settings on the WiFi connection or router itself. Just install the VPN on your device and connect! All traffic is routed through the VPN, keeping you secure.