[WordPress] 外掛分享: Hide Author Archive

首頁 › 外掛目錄 › Hide Author Archive
WordPress 外掛 Hide Author Archive 的封面圖片
600+
安裝啟用
★★★★★
5/5 分(1 則評價)
15 天前
最後更新
—
問題解決
WordPress 6.6+ PHP 7.4+ v1.3.0 上架:2020-10-21

內容簡介

Hide Author Archive 外掛可隱藏作者的檔案頁面,增強網站的安全性,防止機器人檢查。適合不需要顯示作者資訊的網站,並能隱藏相關的查詢參數。

【主要功能】
• 隱藏作者檔案頁面
• 忽略作者查詢參數
• 隱藏 REST API 中的用戶列表
• 移除用戶網站地圖
• 隱藏元標籤中的作者資訊
• 替換 RSS 和 Atom 中的作者名稱

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin will hide author’s archive.
If your don’t need author parameter, this plugin may enhance your site’s security from bot inspection.

No more ?author=1 redirection to /author/admin
Ignore query var like author=1 or author_name=admin
Hide user list in REST API from user without permission list_users or edit_others_posts. Single user request like wp/v2/users/1 is also hidden with the same capabilities, except for the user themselves and users who can edit the user. This capability is filterable.

/**
* Filter capabilities to see author list and single author.
*
* For single user request, $args is an empty array.
*
* @param string[] $caps List of capabilities.
* @param array $args Arguments for user query.
* @param WP_REST_Request|null $request Request object.
*/
add_filter( 'hide_author_archive_rest_query_capability', function( $caps ) {
$caps[] = 'read';
return $caps;
} );

Remove users sitemap (/wp-sitemap-users-1.xml) from core XML sitemaps. Author archive URLs reveal user_nicename, which is usually derived from login name.

Besides that, this plugin tries to remove author information from meta tags and JSON-LD as possible as it can.

Override author section in oEmbed.
Replace author archive links (e.g. author name link in byline) with the posts page, because the link contains user_nicename. You can change the URL in Settings > Reading.
Remove comment-author-{user_nicename} class from registered user’s comments.
Replace author name in feeds ( in RSS, in Atom) with the site name. Author’s URL is also removed from Atom feed. Display name is the same as login name by default, so feeds may reveal it.

Some organization needs to hide author information of each article.
Supported Plugins
Yoast

Remove meta=author
Override author section in Article scheme in JSON-LD
Hide author section in Slack sharing.
Hide article:author in OGP.
Exclude all authors from XML sitemap.

延伸相關外掛

文章
Filter
Mastodon