To prevent your phone from auto-connecting to unfamiliar WiFi networks:
- Go to Settings on your phone.
- Tap Wi-Fi.
- Tap the three vertical dots on the top right corner.
- Tap Advanced.
- Turn off the switch beside Auto-connect to open networks.
- Tap the back arrow twice to get back to the Wi-Fi settings.