Regularly update your browser and operating system, use reliable security software, be careful with what you download and install, and pay attention to the permissions requested by applications and extensions.