The best way to secure a computer is by installing a suite that contains an anti-malware, antivirus, and Firewall as well as other file scanning features and malware prevention. I recommend browsing the database of Software Informer. Most of these applications already have extensions that can be installed in your browsers to prevent malware infection by providing information about the site you're visiting.