Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Cross-site scripting (XSS) defense

    3 answers - 365 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Is there a module (or, better yet, sample code) that scrubs
    user-entered text to remove cross-site scripting attacks, while also
    allowing a small subset of HTML through?
    Contemplated application: a message board that allows people to use
    <b>, <a href="">, <iand so on, but does not allow any javascript,
    vbscript, or other nasties.
  • No.1 | | 25 bytes | |

    Have a look at
    Jim
  • No.2 | | 25 bytes | |

    Have a look at
    Jim
  • No.3 | | 599 bytes | |

    2006-06-16, johnzenger (AT) gmail (DOT) com <johnzenger (AT) gmail (DOT) comwrote:
    Is there a module (or, better yet, sample code) that scrubs
    user-entered text to remove cross-site scripting attacks, while also
    allowing a small subset of HTML through?

    Contemplated application: a message board that allows people to use
    ><b>, <a href="">, <iand so on, but does not allow any javascript,

    vbscript, or other nasties.

    I use Strip-o-Gram:

    It is used quite a bit in Zope, but I believe it
    will also stand on its own.

Re: Cross-site scripting (XSS) defense


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Development"

EMSDN.COM