
內容簡介
總結:這個 WordPress 外掛提供了 [spamex] 短代碼,可以保護電子郵件和電話號碼,使之不易被垃圾郵件或電話滲透。使用者可以自定義在電子郵件部分插入金鑰,並將電話號碼特定區段替換為隨機數字。
問題與答案:
1. 這個 WordPress 外掛提供的兩個主要短代碼是什麼?
- 答:[spamex email=”[email protected]” key=”secret”] 和 [spamex phone=”+1!123!456″]。
2. 在電子郵件保護功能中,金鑰是如何插入的?
- 答:金鑰會被插入在 TLD 之前,例如 [spamex email=”[email protected]” key=”whatyoulike”] 將呈現成 HTML: [email protected]。
3. 在保護電話號碼的功能中,號碼的哪一個部分會被替換為隨機數字?
- 答:第二個驚嘆號以及之後的部分會被隱藏並替換為隨機數字。例如 [spamex phone=”+341588!494!116″] 將呈現成 HTML: +341588494123116。
外掛標籤
開發者團隊
原文外掛簡介
Spamex provides a shortcode to obfuscate email addresses and phone numbers in HTML. This protects them from scraping bots while staying readable for users.
Examples:
[spamex email="[email protected]" key="secret"]
[spamex phone="+1!123!456"]
How it works:
Email:
– The key is injected between domain and TLD.
– Example: name@domain.secret.tld (key is hidden via CSS)
Phone:
– Format must be: prefix!middle!suffix
– The middle part is replaced by random digits.
– Example: +49!123!456 → +49123XYZ456
In both cases, the part is hidden using CSS and only fools bots.
Usage
Email obfuscation:
[spamex email=”[email protected]” key=”protect”]
[email protected]
[spamex phone=”+49!123!456″]
+49123984456
Use exactly two ! to split number into three parts.
