Use the Settings on Your Browser
Use Private Browsing mode if you're on a shared or public computer by selecting this option in your browser's options. To prevent tracking, you should also access the settings on your browser. This requests that websites not access your location data, but you'll have to pray that they comply. Installing an anti-tracker browser plugin blocks tracking cookies so that your location stays hidden. While you're there, make sure no Java or Adobe Flash plugins are actions that could be leaking your information to snoopers.
There are several websites with varying levels of security, and if you go to some dubious sites, your chances of experiencing a cyberattack rise. Websites, where you can download free music and movies, are especially susceptible to this. People have acquired malware from such devices in multiple cases. Always download apps from specialized app stores, such as the Apple Store or Google Play Store, as these are trusted vendors with stricter security standards.