Add protection against malicious scripts