Does your Wifi configuration panels offer such a feature? Not all do. Look for a connect to only preferred networks.

Bob