php - how to prevent cross site scripting - Image is linked -
cross-site scripting code injection attack.
the problem user (or else) enters script instead of input value. example, user puts "<script>" tag in comment.
if display list of comments, script executed visiting page.
what need sanitize outputs, is, remove or escape html code you're writing on page. way, <script>
tag replaced <script>
, , become harmless while looking same.
Comments
Post a Comment