Hi @ayrf, thank you for using the plugin and for the feedback this allows me to optimize the plugin more and more and offer quick assitance to everyone.
Sure! Here’s an explanation of how to add CSP rules using the two widely used and recommended tools for Firefox and Chrome:
- Content Security Policy Gen (Firefox):
- Install the “Content Security Policy Gen” extension from this link in your Firefox browser.
- After installation, visit the website for which you want to generate CSP rules.
- Click on the extension icon in the browser toolbar to initiate the site scan.
- The extension will scan the website and generate recommended CSP rules based on the resources present on the site.
- Copy the generated CSP rules from the extension’s output.
- Content Security Policy Checker (Chrome):
- Install the “Content Security Policy Checker” extension from this link in your Google Chrome browser.
- Access the website for which you want to generate CSP rules.
- Click on the extension icon in the browser toolbar to initiate the site scan.
- The extension will scan the website and generate recommended CSP rules based on the resources present on the site.
- Copy the generated CSP rules from the extension’s output.
Once you have obtained the CSP rules from one of the tools, follow these steps to add them using the “Headers Security Advanced & HSTS WP” plugin:
- Access the Plugin Settings:
- In your WordPress website, log in to the administration area and navigate to the installed plugins section.
- Find and click on the “Headers Security Advanced & HSTS WP” plugin to access its settings.
- Configure the CSP Header:
- Inside the plugin settings, look for the “CSP Header” option and click on it to open the CSP rules configuration section.
- Paste the CSP Rules:
- In the CSP Header section, you’ll find a field where you can paste the CSP rules generated previously by the tool.
- Paste the rules into the designated field, ensuring they are correctly formatted.
- Save the Changes:
- After pasting the CSP rules, click on “Save” or “Update” to apply the changes.
By using the recommended tools, you can generate specific CSP rules for your site, ensuring enhanced security and avoiding the implementation of unnecessary rules.
At the core of my plugin’s mission: ‘Security is a right, not a privilege.’ Rest assured, the security solution is completely free and simple without complicated or endless configurations. Protect your website with security and ease.