AndyGaskell / joomla_plugin_contentsecuritypolicy

A Joomla Content Security Policy

Home Page:http://ssofb.co.uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Joomla Content Security Policy Plugin

A Joomla Content Security Policy Plugin

Installing

  1. Copy files onto Joomla install
  2. In the administrator area, click on "Extentions" -> "Manage" -> "Discover"
  3. Install the "Content Security Policy"
  4. In the plug-in manager, enable "System - Content Security Policy"

Workflow

This is pretty much based on a site admin work-flow like...

  1. Set the site to content="default-src 'self';
  2. See what's broken
  3. Fix broken things one at a time, like content="default-src 'self'; script-src 'self' *.google-analytics.com " to let google analytics work.

In practice an admin would probably do this with Content-Security-Policy-Report-Only and just review the reports.

Related docs...

See also...

Options screen

options screen

Handy to paste...

  • cp -v /var/www/html/joomla_dev_01/plugins/system/contentsecuritypolicy/* plugins/system/contentsecuritypolicy/
  • cp -v /var/www/html/joomla_dev_01/administrator/language/en-GB/en-GB.plg_system_contentsecuritypolicy.* administrator/language/en-GB/

About

A Joomla Content Security Policy

http://ssofb.co.uk

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%