Title: CSP Friendly Security
Author: Pascal CESCATO
Published: <strong>2022 年 4 月 21 日</strong>
Last modified: 2026 年 8 月 27 日

---

搜尋外掛

![](https://ps.w.org/csp-antsst/assets/banner-772x250.png?rev=2712423)

![](https://ps.w.org/csp-antsst/assets/icon-128x128.png?rev=2712423)

# CSP Friendly Security

 由 [Pascal CESCATO](https://profiles.wordpress.org/pcescato/) 開發

[下載](https://downloads.wordpress.org/plugin/csp-antsst.1.5.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/csp-antsst/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/csp-antsst/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/csp-antsst/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/csp-antsst/#developers)

 [技術支援](https://wordpress.org/support/plugin/csp-antsst/)

## 外掛說明

Adds a CSP header compatible with most WP plugins without breaking styles.

## 安裝方式

 * Extract the zip file and drop the contents in wp-content/plugins/ or install 
   via dashboard.
 * Activate the plugin. No settings required.

## 常見問題集

### Is there something to do after install?

Just activate it!

## 使用者評論

![](https://secure.gravatar.com/avatar/f50bbf43bd170e32ee9e71eabb62a981cd6af5c947783b2af93c21554bacbea6?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-37270/)󠁿

 [amanandhishoe](https://profiles.wordpress.org/amanandhishoe/) 2023 年 7 月 24 
日

I downloaded this plugin and modified it for my site. I would recommend doing that.
The plugin hooks into the 'template_redirect' hook. At that point the source for
the page has been generated by themes and plugins and is ready to be sent. The plugin
looks through the generated source and makes nonces for all inline scripts and styles.
It modifies the source so the inline scripts and styles have a nonce='some-nonce'
statement in them. It creates a Content-Security-Policy which includes those nonces.
However, each site has its own CSP needs, and so modifying the plugin to tailor 
the CSP to your site is not that difficult to do. That is what I have done.

![](https://secure.gravatar.com/avatar/9b95bfa4d1616d47a8ecea5e0edbd6be48a8db11943e7b3cea85f3849dfff88d?
s=60&d=retro&r=g)

### 󠀁[total cache compatibility issues](https://wordpress.org/support/topic/total-cache-compatibility-issues/)󠁿

 [hayobethlehem](https://profiles.wordpress.org/hayobethlehem/) 2022 年 9 月 15 
日

doesn't seem to work properly with w3tc. hope it will get updated at some point.

![](https://secure.gravatar.com/avatar/b9a102a7679e849a7d3d54edbe5078df83959b5a07679cc59fceb0af4d2f1264?
s=60&d=retro&r=g)

### 󠀁[Could be better](https://wordpress.org/support/topic/could-be-better-53/)󠁿

 [Anonymous User](https://profiles.wordpress.org/anonymized-20439159/) 2022 年 9
月 8 日

The plugin works as advertised however, it does not let you modify the CSP header
resulting in a less than ideal CSP header. The header this plugin serves provides
no protection against clickjacking and allows all external scripts.

![](https://secure.gravatar.com/avatar/5146f0764e00f8116c4d6c0e8af7d77da8aeba106cf2211a380a787fc18855eb?
s=60&d=retro&r=g)

### 󠀁[Satisfied!](https://wordpress.org/support/topic/satisfied-104/)󠁿

 [OkorieWare](https://profiles.wordpress.org/okorieware/) 2022 年 7 月 14 日

This is the most 'straight to the point' CSP tool that I've found. So far, so go.

 [ 閱讀全部 4 則使用者評論 ](https://wordpress.org/support/plugin/csp-antsst/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈CSP Friendly Security〉的開發相關工作。

參與者

 *   [ Pascal CESCATO ](https://profiles.wordpress.org/pcescato/)

[將〈CSP Friendly Security〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/csp-antsst)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/csp-antsst/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/csp-antsst/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/csp-antsst/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/csp-antsst/)。

## 變更記錄

#### 1.5.1

 * Fixed plugin header for WP validation
 * Added short description

## 中繼資料

 *  版本 **1.5.2**
 *  最後更新 **2 個月前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 5.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1.4**
 *  PHP 版本需求 ** 7.3 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/csp-antsst/)
 * 標籤:
 * [content security policy](https://tw.wordpress.org/plugins/tags/content-security-policy/)
   [csp](https://tw.wordpress.org/plugins/tags/csp/)[Security Headers](https://tw.wordpress.org/plugins/tags/security-headers/)
 *  [進階檢視](https://tw.wordpress.org/plugins/csp-antsst/advanced/)

## 評分

 3.5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/csp-antsst/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/csp-antsst/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/csp-antsst/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/csp-antsst/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/csp-antsst/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/csp-antsst/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/csp-antsst/reviews/)

## 參與者

 *   [ Pascal CESCATO ](https://profiles.wordpress.org/pcescato/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/csp-antsst/)