PHP Classes

File: READMETXT.txt

Recommend this page to a friend!
  Classes of Michael A. Peters   CSP Filter   READMETXT.txt   Download  
File: READMETXT.txt
Role: Documentation
Content type: text/plain
Description: Setting up examples
Class: CSP Filter
Filter HTML based on Content Security Policy
Author: By
Last change: small typo
Date: 15 years ago
Size: 1,653 bytes
 

Contents

Class file image Download
There are several files associated with this release. 1) cspfilter_class.php -- The class file, and the only file you need to include -- the class in your own projects. 2) license.txt -- Common Public License v 1.0 -- The license this software is distributed under. 3) README.html -- An introduction to the class, why I wrote it, what it -- does and how to use it. 4) index.php -- Passes README.html through the class for demonstrative -- purposes 5) testimage.jpg -- An image that demonstrates image source filtering -- Used by README.html (and thus index.php) -- If testimage.jpg is not available, any image will work, -- name it testimage.jpg 6) testscript.js -- JavaScript that demonstrates script source filtering -- Used by README.html (and thus index.php) 7) ifobtest.php -- php file that demonstrates iframe/object source filtering -- Used by README.html (and thus index.php) 8) dom_script_test.php -- Creates a test area where you can dynamically specify policy -- rules and feed input to be passed through the output filter. -- Linked to in README.html (and thus index.php) 9) READMETXT.txt -- This file NOTES For best use of the examples, put all those files in a directory in a php enabled web server. Then create the following symlinks in that dir: ln -s index.php index.phps ln -s cspfilter_class.php cspfilter_class.phps ln -s dom_script_test.php dom_script_test.phps If your web server is configured to follow symlinks and process .phps files as application/x-httpd-php-source then you can view the source to those files (linked in the files) as pretty syntax highlighted php source.