Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to prevent Java Script Injection ?  RSS feed

 
Seetharamireddy Mittala
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have to secure my website from Cross Site Scritptinng attach ( XSS Attach).

Could you please provid patterent to validate input values to resolve this ?

Regards
Seetharami Mittala
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66184
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's more about output than input. Be sure to HTML encode any non-trusted output. That is easily accomplished by using <cut> to emit any dynamic text whose origin is not trusted.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!