When you visit a website, software can be installed on your PC without your consent or knowledge. This is known as a drive-by download, done so that your data and online habits can be tracked.