javascript - Cross Site Scripting: Is restricting the use of < and > tags an effective way to reduce Cross Site Scripting? -


if want prevent xss, restricting input of special characters such < , > in text entry forms best way prevent it?

i mean, prevent entry of html tags such <script> , <img> etc. , block xss.

would agree?

no. best way prevent ensure information output onto page appropriately encoded.


some possible examples of why angle brackets (and other special character blocking) insufficient:

https://security.stackexchange.com/questions/36629/cross-site-scripting-without-special-chars


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -