Firstly, you should be very aware that the system you are using is not your personal one, so there must be many people, who accessed it before and after you. So always remember that it is not safe at all. There are number of security features that are inbuilt in Windows and Mac OS that provide you much security. So what you have to do is enabling the firewall and turn off the ‘Block all incoming traffic' option. File sharing should be disabled to make the public network safer.
Even an immature computer hacker can easily retrieve your saved passwords and can monitor your key strokes through any software installed on the system. An easy alternative to this problem is to Install Last Pass (a browser that stores your password and info on the cloud storage which you won't have to re-type or store in your computer). virus removal supportThe internet sites that have HTTPS in their address are encrypted so these sites are highly secured ones. You can also download Firefox extension ‘HTTPS Everywhere' that encrypts your conversation with many websites. Or merely check if the URL has ‘https://…' address.
The hackers took advantage by falsifying the network name from the user. So you must check that the network name is real or not. Because if you access a hacker's network you will be totally in his control. The false or fake networks may resemble somewhat like -FREE Wi-Fi or anything. So while you are going to use the public network, the genuineness of the network name must be confirmed. Highly confidential data should not be retrieved on public networks like checking your accountstatements or any other personal stuff. You should always rely on just your own personal networks as they are safest. Above written points will be very helpful during the access of public wi-fi hotspots. these points will secure you from the unwanted access and keep your data safe.