How to Stop Your Mac From Automatically Connecting to a Wi-Fi Network
Your Mac automatically reconnects to Wi-Fi networks you’ve previously connected to. Starting with macOS High Sierra, you can now tell your Mac not to automatically connect to certain Wi-FI networks. Your Mac will remember the Wi-Fi network’s passphrase and other connection details, but won’t connect unless you tell it to.