0

Possible Duplicate:
How to prevent XSS with HTML/PHP?

I know that in a lot of website, if you enter :
<script>alert("xss");</script>
The website will display an error.
Exemple : http://www.igossips.com

Enter the preceding code in the search box.
The website displays a lot of the code.

How can I prevent this to happen on my own website ??

Community
  • 1
  • 1
Sam K.
  • 147
  • 6

1 Answers1

1

Here is a good overview on XSS prevention:

https://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet

Mike Brant
  • 70,514
  • 10
  • 99
  • 103
  • Your answer is helpful, but [you can make it better](http://meta.stackexchange.com/q/8259) by including a summary or relevant portions of the pages you're linking to. This will also help your answer remain great even if the links you included break in the future. – eggyal Sep 14 '12 at 20:28