Recent reports about online accounts of celebrities being hacked and personal information stored in companies' databases getting stolen are strong indicators that anyone can be a victim of cyber attacks.

Fortunately, there are ways people can protect their online accounts and mobile devices from such threats.

A recent article posted by CNN featured top advices from hackers on how to ensure one's online protection.

As their first tip, they said it is highly advisable to switch off the Wi-Fi and Bluetooth features of devices when they are not in use. The danger of always leaving them on is that devices will constantly search for possible networks.

As a result, hackers can trick their potential victim's phone into connecting to their own Wi-Fi and Bluetooth networks.

Once this happens, the attackers can easy steal sensitive information or install malware into the victim's phone.

Another helpful advice is to always use HTTPS on all websites. This can be done automatically by simply developing the HTTPS Everywhere tool created by online privacy advocate Electronic Frontier Foundation, WGN TV reported.

With this tool, all the information the browser sends to the user's computer and websites are encrypted or converted into codes to prevent unauthorized access.  Without this, anyone can easily monitor the user's online activities.

Lastly, in setting up the Wi-Fi router for the home or office, user should not hide the SSID if they're asked to do so.  

Agreeing to hide the SSID will force devices to actively and constantly scan and look for the network. This leaves smartphones, laptops and tablets susceptible to connecting to unknown and unsafe Wi-Fi networks.

Once this happens, the person operating the unsafe network can easily hack into the devices, according to Lockerdome.

"You're actually setting yourself back five years in terms of security," Ben Smith, an experienced Wi-Fi hacker said about hiding the SSID.