Announcement Announcement Module
Collapse
No announcement yet.
XSS Filter for response Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XSS Filter for response

    Hi All,

    I am trying to write XSS filter from my application. I already have a XSS filter which doesn't accept the invalid input from the form. I have those check with
    Code:
    if(scriptTagCheck() || srcValueCheck() || .....)
    . Since there can be N number of patterns check how can I write these in efficient way.

    Second I need to same for response/data send to the client/browser. I don' think filter can do this for me. So how I can make sure data send back to browser doesn't have such malicious tag.

    Thanks
Working...
X