Although the possibility is rare, under certain circumstances, your Apple devices can catch a virus from a website. Visiting a malicious website is one such circumstance. This means to say that when you use the browser of your mac or iPhone for opening a malicious website, there are chances that a virus may enter your device and affect its functioning. As per the research, it has been found that several models of iPhones can be affected by viruses from websites. Along with interfering with the normal functioning of your Apple device, the virus may even install spyware on it. The spyware, if installed by a virus, can keep working in the background while you use your iPhone. Further, it may collect your data and pass it on.