Keep your web browsers, operating systems, and antivirus definitions updated to block malicious scripts automatically.