How to prevent ubuntu from connecting to wifi hotspots automatically

You can stop Ubuntu from automatically connecting to Wifi connections without deleting the connection entry itself.

Go to: network-indicator > Edit Connections > Wireless

Select the entry that you do not want automatically connecting. Once selected/highlighted, click on the "Edit" button on the right side of the window. At the top of the window that opens, you will see an option to disable "Connect automatically".