This episode goes over the basics of cross site scripting also known as XSS attacks and how to prevent them on your own site. Take a look at the code on GitHub if you are interested in following along. I have also included links to some other interesting videos on XSS if you are interested.
TLDR;
If you ever are putting untrusted data (data that your users enter) onto your site you need to properly encode it and avoid putting it in dangerous places.
Other Cool Videos on XSS:
XSS Attack found on Google Search Bar: • XSS on Google Search - Sanitizing HTML in ...
An Awesome Tom Scott Video on XSS: • Cracking Websites with Cross Site Scriptin...
Playlist: • Secure PHP Authentication System from Scratch
Code: https://github.com/Code-Break0/Secure...