My New Photo Gallery HTML Tables: Loosing Its Place in the Web
Aug 20

I came accross this thread in our PHP forum, HTML Purifier. It’s supposed to be better than HTML Tidy so i checked it out (http://htmlpurifier.org/). HTML Purifier is an open source (OSS) HTML filtering solutions you can have for your website against spams and XSS attacks.

Wily hackers have a huge arsenal of XSS hidden within the depths of the HTML specification. HTML Purifier takes its effectiveness from the fact that it will decompose the whole document into tokens, and rigorously process the tokens by removing non-whitelisted elements, transforming bad practice tags like font into span, properly checking the nesting of tags and their children and validating all attributes according to their RFCs. HTML Purifier’s comprehensive algorithms are complemented by a breadth of knowledge, ensuring that richly formatted documents pass through unstripped.

I downloaded the Wordpress plugin version of HTML Purifier, installed, setup, and activated it in this blog (http://urbangiraffe.com/plugins/html-purified/). I tried putting all possible XSS attacks i can think of and it’s working great!

This is a must for every web developer who’s torn between using OSS WYSIWYG and robust filtering validation scripts.

No Tags Found


Related Posts:
  • My New Photo Gallery
  • WPVideo: Another Great Wordpress Video Plugin
  • Paradise Philippines: 1st Social SEO Contest
  • Getting More Links With Your Backlinks

  • One Response to “HTMLPurifier: Not Just Another WordPress Plugin”

    1. Santosh Patnaik INDIA Windows XP Mozilla Firefox 2.0.0.11 Says:

      Have a look at htmLawed — much less resource-intensive than HTMLPurifier, and kses-compatible. Kses is the script used in WordPress, and using htmLawed in WordPress is as simple as replacing the kses.php file.

    Leave a Reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture.
    Anti-Spam Image

    FireStats icon Powered by FireStats

    This site is protected with Urban Giraffe's plugin 'HTML Purified' and Edward Z. Yang's Powered by HTML Purifier. 36 items have been purified.