{"id":1346,"date":"2018-04-02T09:06:00","date_gmt":"2018-04-02T09:06:00","guid":{"rendered":"https:\/\/www.htmlgoodies.com\/uncategorized\/so-you-dont-want-to-be-hacked-with-cross-site-scripting-xss\/"},"modified":"2021-04-23T20:13:03","modified_gmt":"2021-04-23T20:13:03","slug":"so-you-dont-want-to-be-hacked-with-cross-site-scripting-xss","status":"publish","type":"post","link":"https:\/\/www.htmlgoodies.com\/html5\/so-you-dont-want-to-be-hacked-with-cross-site-scripting-xss\/","title":{"rendered":"So You Don’t Want to be Hacked with Cross-Site Scripting (XSS)"},"content":{"rendered":"

If you are creating a site that allows users to enter information, then you need to learn how to avoid some basic mistakes that can leave your site vulnerable to being hacked. The first step to avoiding Cross Site Scripting (XSS) attacks is to know they can happen.<\/p>\n

In short, if you are allowing any information to be added by users to your site, then you need to make sure you are protecting yourself. Some of the user interactions that pose a risk include:<\/p>\n