前言介紹
- 這款 WordPress 外掛「Random User IDs」是 2017-05-22 上架。
- 目前有 300 個安裝啟用數。
- 上一次更新是 2025-01-27,距離現在已有 97 天。
- 外掛最低要求 WordPress 3.1 以上版本才可以安裝。
- 有 5 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
davefx |
外掛標籤
內容簡介
這個 WordPress 外掛會為 WordPress 安裝時建立的使用者隨機生成 user ID,從而減少網站的一個攻擊因素。
自 WordPress 4.9 版本以來,它也會為安裝後建立的所有其他使用者隨機生成 user ID。
在 WordPress 4.9 版本之前,此功能需要安裝 WP Issue https://core.trac.wordpress.org/ticket/40545 的補丁。
如何運作
啟用後,外掛會立即替換預設管理員使用者(使用者 ID 為 1)的 ID。默認情況下,外掛會使用介於 1 和 4503599627370495 之間的隨機使用者 ID(以確保與使用使用者 ID 的 Javascript 代碼兼容)。
之後建立的所有新使用者將以定義的範圍內的隨機使用者 ID 生成。
如何自訂新使用者 ID 的範圍
您可以使用 WordPress 的篩選器 dfx_random_user_id_max_id 和 dfx_random_user_id_min_id 自訂外掛用於隨機生成使用者 ID 的範圍。
例如,如果您想讓所有使用者 ID 介於 1000 和 9999 之間,您可以將以下行添加到您的主題 functions.php 檔案中:
function set_dfx_max_user_id( $default_max_id ) {
return 9999;
}
add_filter( 'dfx_random_user_id_max_id', 'set_dfx_max_user_id' );
function set_dfx_min_user_id( $default_max_id ) {
return 1000;
}
add_filter( 'dfx_random_user_id_min_id', 'set_dfx_min_user_id' );
也許,您會希望在啟用外掛之前將這些行添加到您的程式碼中,這樣您的新隨機主管理員使用者 ID 就會在您期望的範圍內。
原文外掛簡介
This WordPress plugin randomizes the user_id for the user created on WordPress setup, removing one potential attack factor from the site.
How it works
Once activated, the plugin will immediately replace the ID for the default admin user (with user ID 1). By default, the plugin will use random user IDs between 1 and 4503599627370495 (to ensure compatibility with Javascript code using the user ID).
All newly created users from that moment will be generated with a random user ID in the defined range.
How to customize the range for new user IDs
You can customize the range used by the plugin for the random generated user IDs by using the WordPress filters dfx_random_user_id_max_id and dfx_random_user_id_min_id.
For example, if you want to have all your user IDs between 1000 and 9999 you can add the following lines to your theme’s functions.php file:
function set_dfx_max_user_id( $default_max_id ) {
return 9999;
}
add_filter( 'dfx_random_user_id_max_id', 'set_dfx_max_user_id' );
function set_dfx_min_user_id( $default_max_id ) {
return 1000;
}
add_filter( 'dfx_random_user_id_min_id', 'set_dfx_min_user_id' );
Probably, you’ll want to add these lines to your code before activating the plugin, so your new random main admin user ID is inside your desired range.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Random User IDs」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
trunk | 20170521 | 20170524 | 20170526 | 20170720 | 20190125 | 20201115 | 20170526.1 | 20201115.1 |
延伸相關外掛(你可能也想知道)
Wordfence Security – Firewall, Malware Scan, and Login Security 》fective way to manage multiple WordPress sites with Wordfence installed from a single location., Monitor security status across all your sites from...。
Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) 》le Plugins include Complianz GDPR, Disable Updates Manager, and Really Simple CAPTCHA., , Really Simple SSL是一個外掛,自動配置你的網站最大程度上使...。
Jetpack – WP Security, Backup, Speed, & Growth 》search engines, and grow your traffic with Jetpack. It’s the ultimate toolkit for WordPress professionals and beginners alike., , Customize and des...。
Hostinger Tools 》- Hostinger Onboarding WordPress Plugin 简化和加快了WordPress网站的设置过程。, - 提供了简便和快速的方式来建立WordPress网站。。
Limit Login Attempts Reloaded – Login Security, Brute Force Protection, Firewall 》Limit Login Attempts Reloaded 是一款WordPress外掛,可阻止暴力破解攻擊並透過限制常規登錄、XMLRPC、Woocommerce和自訂登錄頁面的登錄嘗試次數來優化您的...。
ManageWP Worker 》, Want to clone or migrate your WordPress website to a new host or domain? No problem! With ManageWP, you can easily clone or migrate your website ...。
Security Optimizer – The All-In-One Protection Plugin 》透過精心挑選且易於配置的功能,SiteGround Security 外掛提供了您所需的一切來保護您的網站並預防多種威脅,例如暴力破解攻擊、登錄錯誤、資料外洩等等。, ...。
Safe SVG 》Safe SVG 可以讓你安心地在 WordPress 中上傳 SVG 檔案!, 它能夠讓你允許上傳 SVG 檔案的同時,確保它們已經經過消毒以防止 SVG/XML 弱點影響你的網站。此外...。
Loginizer 》Loginizer 是一個 WordPress 外掛,可幫助您對抗暴力攻擊,當 IP 地址達到最大重試次數時,該外掛會阻止其登錄。您可以使用 Loginizer 將 IP 地址列入黑名單...。
All-In-One Security (AIOS) – Security and Firewall 》vated to your website, All-in-One Security's WAF will detect and block hacking attempts, adding an extra layer of security to your WordPress site. ...。
Solid Security – Password, Two Factor Authentication, and Brute Force Protection 》ing iThemes Security Plugin can benefit you:, 保護您的 WordPress 網站的最佳外掛程式, 平均每天有 30,000 個網站遭受駭客攻擊,在網路上每 39 秒就會有一...。
User Role Editor 》「User Role Editor」WordPress 外掛讓您輕鬆更改使用者角色和權限。, 只需打開您希望新增到所選角色的能力核取方塊,然後按「更新」按鈕以保存您的更改。完...。
Sucuri Security – Auditing, Malware Scanner and Security Hardening 》Sucuri Inc. 是全球公認的網站安全權威,專門為 WordPress 安全提供專業知識。, Sucuri Security WordPress 擴充套件對所有 WordPress 使用者免費提供。它是...。
MainWP Child – Securely Connects to the MainWP Dashboard to Manage Multiple Sites 》這是一個針對「MainWP Dashboard」的子外掛程式,可將您的 WordPress 網站連接至 MainWP Dashboard。, MainWP是一個完整的 WordPress 管理解決方案,是自助...。
SiteGuard WP Plugin 》版本: 1.6.7, , 您可以在日文網頁和英文網頁上找到文件、常見問題和更詳細的資訊。 , 安裝SiteGuard WP Plugin後,WordPress安全性會得到提高。, 本外掛是一...。