Recommend this page to a friend! |
Download .zip |
Info | View files (9) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2010-02-18 (6 years ago) | Not enough user ratings | Total: 521 | All time: 5,420 This week: 881 |
Version | License | PHP version | Categories | |||
cspfilter 0.25 | Custom (specified... | 5.0 | HTML, PHP 5, Security |
Description | Author | ||||||||||||||
This class can be used to filter HTML based on Content Security Policy. Innovation Award |
|
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. |
Files |
File | Role | Description |
---|---|---|
cspfilter_class.php | Class | The class file |
dom_script_test.php | Example | Class Playground |
ifobtest.php | Aux. | Example iframe/object |
index.php | Example | Example Script |
license.txt | Lic. | CPL License |
README.html | Doc. | Documentation |
READMETXT.txt | Doc. | Setting up examples |
testimage.jpg | Photo | Example Image |
testscript.js | Data | Example JS |
cspfilter-2010-02-18.zip 51KB | |
cspfilter-2010-02-18.tar.gz 50KB | |
Install with Composer |
Needed packages | ||
Class | Download | Why it is needed | Dependency |
---|---|---|---|
IDNA Convert | .zip .tar.gz | convert to punycode | Optional |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.