[WordPress] 外掛分享: Ruigehond embed

首頁外掛目錄 › Ruigehond embed
WordPress 外掛 Ruigehond embed 的封面圖片
全新外掛
安裝啟用
尚無評分
32 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.4.2 上架:2024-10-17

內容簡介

Ruigehond embed 外掛可讓您安全地將網站中的特定網址嵌入到其他網站,防止未經授權的嵌入行為,並加強網站的安全性。透過簡單的設定,您可以在衛星網站上重用表單或其他內容,並自動調整 iframe 高度以適應內容。

【主要功能】
• 安全嵌入特定網址
• 防止未經授權的內容嵌入
• 自動調整 iframe 高度
• 支援 Content Security Policy (CSP)
• 簡易設定與使用

外掛標籤

開發者團隊

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

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

原文外掛簡介

Plugin to embed selected urls from your site elsewhere.
Security
Other embedding will be prohibited by default, with an X-Frame-Options header and, optionally, a Content Security Policy header.
This will secure your WordPress website from a number of fairly easy attacks.
To make this plugin especially useful you can now allow (third party) websites to embed specific urls from your site.
Easily reuse forms or other content from your main site on satellite sites you own, without opening up any of them to attack.
Quick setup
Activate the plugin and go to Settings -> Ruigehond embed.
Add a reference (e.g. general-contact-form) in the title field and save the settings.
Add a slug it should serve (e.g. /contact-clean/) in the embed field.
Add urls that may embed this, aka referrers, (e.g. https://my-satellite.site) in the textarea.
Embedding
Install the plugin on your satellite site. This has the added benefit of locking down that site as well.
Use the simple shortcode on that site to generate an iframe with the embedded content:
[ruigehond-embed src="https://my-main.site/ruigehond_embed/general-contact-form"]
Watch the form magically and safely be embedded. Other sites will continue to not be able to embed your content.
You can also embed using a regular iframe in html, as long as the referrer is whitelisted.
However, by using the plugin and shortcode, the height of the iframe will automatically be adjusted to fit the content.
Use htaccess
This plugin adds lines (clearly marked) at the beginning of your htaccess file.
They need not be at the beginning, but they need to be before the WordPress lines, or any other lines that corrupt the THE_REQUEST var.
This plugin needs mod_headers, mod_rewrite and mod_setenvif to be activated, but they probably already are.
Without htaccess
When the htaccess is not processed, the plugin itself works directly with the request in the php processor.
The CSP header is not supported in that case.
Also, other plugins (especially caching plugins) may already have decided on a different route and this plugin might not work.
Content Security Policy
You can switch on the Content Security Policy (or CSP) header in this plugin, which is the most modern way to tackle these issues.
However, other plugins may interfere, so be sure to check whether the CSP header is to your liking in practice.
This plugin will add a CSP header if none is present yet.
But if one is present, the frame-ancestors directive must be present in it for this plugin to work.
It will only set the frame-ancestors directive, none of the others (to not break your site).

文章
Filter
Mastodon