PHP Classes
Icontem

Class: CSP Filter


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michael A. Peters  >  CSP Filter  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: CSP Filter Support forum
Base name: cspfilter
Description: Filter HTML based on Content Security Policy
Related top rated classes: ,
Version: 0.25
Required PHP version: 5.0
License: Custom (specified in a license file)
All time users: 284 users
All time rank: 4412
Week users: 0 users
Week rank: 3526
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Dependencies   Applications   Files Files  

Author

Picture of Michael A. Peters
Name: Michael A. Peters <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Home page: ???
Age: 36
All time rank: 2094
Week rank: 1715

Innovation Award

PHP Programming Innovation award nominee
April 2009
Number 9
When displaying HTML content submitted to a site by untrusted users, you need to be careful to not allow cross-site scripting and cross-site request forgery security exploits that can be performed by specially crafted HTML and Javascript.

Mozilla foundation people have defined a Content Security Policy that defines which HTML elements can be or not be included in a page.

This class can filter untrusted HTML using Mozilla Content Security Policy rules.

Manuel Lemos

Groups

Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Security Security protection and attack detection View top rated classes

Detailed description

This class can be used to filter HTML based on Content Security Policy.

It takes a DOM Document object loaded with the structure of an HTML document and process it to find violations of the Content Security Policy definition.

The class changes the document structure to filter and enforce the policy definitions, so the application can serve a compliant HTML document.

User ratings

There are not enough user ratings to display for this class.

Packages needed by this class

Class Dependency Why it is needed
IDNA Convert
Optional
convert to punycode

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file cspfilter_class.php Class The class file
Plain text file dom_script_test.php Example Class Playground
Plain text file ifobtest.php Aux. Example iframe/object
Plain text file index.php Example Example Script
Plain text file license.txt Lic. CPL License
HTML file README.html Doc. Documentation
Plain text file READMETXT.txt Doc. Setting up examples
Image file testimage.jpg Photo Example Image
Plain text file testscript.js Data Example JS
Download all files: cspfilter.tar.gz cspfilter.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products