[WordPress] 外掛分享: Secure Paste

首頁外掛目錄 › Secure Paste
40+
安裝啟用
★★★★★
5/5 分(1 則評價)
162 天前
最後更新
問題解決
WordPress 3.7+ v1.7 上架:2015-10-09

內容簡介

WordPress本身可以過濾您內容中的危險代碼。
但是,您的使用者可能會在文章、頁面或自訂文章類型中插入不必要的HTML標籤,破壞您的網站設計,而不會危及您的安全性。

此外掛會在將文章、頁面和自訂文章類型內容插入WordPress資料庫之前,刪除其中的不必要HTML標籤。
此外,它還會防止使用者在文章內容中貼上或撰寫不允許的HTML標籤。

如果您的網站使用者為您製作內容,並且他們從其他網頁複製內容,那麼在這種情況下,此掛件將對您有所幫助,不允許不必要的HTML標籤。

此外掛只允許以下HTML標籤 :

p、h1、h2、h3、h4、h5、h6、ol、ul、li、ins、blockquote、
cite、code、em、b、i、u、q、strike、strong、br、hr、
abbr(允許使用屬性:title)、
acronym(允許使用屬性:title)、
a(允許使用屬性:href、title)、
img(允許使用屬性:src、alt、class、width、height)、
del(允許使用屬性:datetime)

使用方法 :

下載並解壓縮此掛件至wp-content/plugins/
在WordPress的「外掛」選單中啟用此掛件,並享受!

優秀特點

易於使用
檔案易於自訂(您可以在secure-paste.php檔案中添加您的標籤)

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Secure Paste」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WordPress itself does a job of filtering dangerous code inside your content.
But your users can break your site design without compromising your security by inserting unnecessary HTML tags in post, page or in custom post type.
This plugin removes unnecessary HTML tags from post, page and custom post type content before inserting it to your WordPress database.
It also prevents users to paste or write disallowed HTML tags in post content.
If your website users creates content for you and if they copy the content from some other webpages, then in that situation this plugin will be helpful to you to disallowed unnecessary HTML tags.

This plugin will only allow the below HTML tags :
p, h1, h2, h3, h4, h5, h6, ol, ul, li, ins, blockquote,
cite, code, em, b, i, u, q, strike, strong, br, hr,
abbr (allowed attributes: title),
acronym (allowed attributes: title),
a (allowed attributes: href, title),
img (allowed attributes: src, alt, class, width, height),
del (allowed attributes: datetime)

Usage :

Download and extract this plugin to wp-content/plugins/
Activate the plugin through the ‘Plugins’ menu in WordPress and enjoy !

Amazing Features

Easy to use
File is easy customizable ( you can add your tag in secure-paste.php file )

延伸相關外掛

文章
Filter
Apply Filters
Mastodon