[WordPress] 外掛分享: Login alert by e-mail

WordPress 外掛 Login alert by e-mail 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Login alert by e-mail」是 2023-02-15 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2023-02-16,距離現在已有 807 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ruicruzpt |

外掛標籤

alert | email | login | Login Alert |

內容簡介

簡述:
這是一個 WordPress 的外掛,它會寄送電子郵件通知網站管理員關於成功或失敗的登入嘗試,其中包含使用者名稱、IP 地址及瀏覽器資訊。

專業解說:
這個 WordPress 外掛透過連接 ‘wp_login’ 及 ‘wp_login_failed’ WordPress 行動,分別觸發 ‘send_login_notification’ 和 ‘send_login_failed_notification’ 函式。成功的登入會由 ‘send_login_notification’ 函式寄出電子郵件通知管理員,失敗的登入會由 ‘send_login_failed_notification’ 函式寄出類似的通知。

‘send_login_notification’ 函式會寄送電子郵件到指定的管理員電子郵件地址,其中包含成功登入的使用者名稱、IP 地址及瀏覽器資訊。而 ‘send_login_failed_notification’ 函式則會寄送類似的電子郵件通知管理員,但報告的是失敗的登入。

這個外掛使用 wp_mail 函式寄出電子郵件,所有訊息會以 HTML 格式呈現以方便閱讀。此外掛同時使用 PHP 內建的跳脫字元函式來防止 XSS (跨站腳本攻擊)等潛在的安全漏洞。

總結來說,這個外掛提供了管理員一個簡便的方法來瞭解網站上使用者的登入狀況,同時確保顯示的敏感資訊是安全的。

原文外掛簡介

TLDR:
This is a plugin for WordPress websites that sends email notifications to the website admin for successful and failed login attempts. The email includes details like the username, IP address, and browser information.
Geek description:
This WordPress plugin sends email notifications upon successful and failed logins to the website’s admin. The plugin functions by hooking into the ‘wp_login’ and ‘wp_login_failed’ WordPress actions, and triggering the ‘send_login_notification’ and ‘send_login_failed_notification’ functions respectively.
The ‘send_login_notification’ function sends an email to the admin email address specified in the ‘admin_email’ option. The email includes details such as the successful login username, IP address, and browser information. The ‘send_login_failed_notification’ function sends a similar email to the admin, but for failed login attempts.
The plugin uses the wp_mail function to send the emails, and the messages are formatted as HTML for easy readability. The plugin ensures that the data being displayed, such as the username and IP address, is escaped using PHP’s built-in escape functions. This is done to prevent potential security vulnerabilities, such as XSS (Cross-Site Scripting).
In summary, this plugin provides an easy way for website administrators to stay informed of user login activity on their site, while also ensuring that sensitive information is displayed securely.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Login alert by e-mail」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon