Filter user entered Html for possible Cross Site Scripting attacks

E

emer.kurbegovic

I need to build a filter that will filter user entered html and which
will allow only certain html tags through (i.e. <IMG>, <SCRIPT> and
<EMBED> would be allowed).

i was going to HtmlEncode the entire user html input and filter out
only what is "allowed".

i need the best way to filter for all possible known xss attacks. is
there anything like this out there already?

have already read couple of articles on preventing the cross site
scripting:
1.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/PAGHT000004.asp
2 .http://www.technicalinfo.net/papers/CSS.html

any help would be appreciated.

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top