How can I restrict my phone to connect just on certain wifi APs of choice?

What I mean? I have my home connection wifi01. cool, all works. I leave home, and I forget to turn wifi off. While waiting at the traffic light my phone picks up some networks and prompts for connection setting. I know this is normal, but is there a way to disable this? I just want to connect on certain networks.

Is there a way? or some software that does this?