Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

latenights/simple-csp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-csp

Simple Content Security Policy example

Using "simple-csp" on your own site:

Set

define('ENVIROMENT', 'test'); // live, test

Include

require_once('csp/directives.php')

and watch how it works.

Directives can be set in

csp/directives.php

Report

Any violation is pushed to

csp/violations.txt

Enviroment

Enviroment determines which policy mode is used.

Test - won't output not allowed resources

Live - will output all resources, even not allowed.

###Preview

http://htmlpreview.github.io/?https://github.com/latenights/simple-csp/blob/master/index.php

More info about Content Security Policy: https://content-security-policy.com/

About

Simple Content Security Policy example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors