Changeset 3260323
- Timestamp:
- 03/23/2025 04:02:18 PM (13 months ago)
- File:
-
- 1 edited
-
spamex/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
spamex/trunk/readme.txt
r3258751 r3260323 5 5 Requires at least: 4.7 6 6 Tested up to: 6.7 7 Requires PHP: 5. 47 Requires PHP: 5.6 8 8 Stable tag: 1.6.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 A simple WordPress plugin that provides a shortcode to obfuscate email addresses and phone numbers to protect them from spam bots.12 Protect email addresses and phone numbers from spam bots with a simple shortcode. 13 13 14 14 == Description == 15 Provides the shortcode [spamex email="name@domain.tld" key="secret"] or [spamex phone="+1!123!456"].16 15 17 Email: Inserts the key before the TLD. 18 Phone: The section between the second ! and the end is hidden and replaced with random digits. 16 **Spamex** provides a shortcode to obfuscate email addresses and phone numbers in HTML. This protects them from scraping bots while staying readable for users. 17 18 ### Examples: 19 20 - `[spamex email="name@domain.tld" key="secret"]` 21 - `[spamex phone="+1!123!456"]` 22 23 ### How it works: 24 25 **Email:** 26 - The `key` is injected between domain and TLD. 27 - Example: `name@domain<b>.secret</b>.tld` (key is hidden via CSS) 28 29 **Phone:** 30 - Format must be: `prefix!middle!suffix` 31 - The `middle` part is replaced by random digits. 32 - Example: `+49!123!456` → `+49123<b>XYZ</b>456` 33 34 In both cases, the `<b>` part is hidden using CSS and only fools bots. 19 35 20 36 == Installation == 21 Upload the spamex plugin folder to the /wp-content/plugins/ directory. 22 Activate the plugin via the Plugins menu in WordPress. 37 38 1. Upload the `spamex` folder to `/wp-content/plugins/` 39 2. Activate the plugin via WordPress > Plugins 23 40 24 41 == Usage == 25 Email (default):26 [spamex email="name@domain.tld" key="whatyoulike"] => HTML: name@domain.<b>whatyoulike</b>.tld27 Frontend: name@domain.tld28 Phone (formatted with ! as separator):29 42 30 [spamex phone="+341588!494!116"] => HTML: +341588494<b>123</b>116 31 [spamex phone="0123!456!7890"] => HTML: 0123456<b>472</b>7890 32 Frontend: +341588494116 or 01234567890 43 ### Email obfuscation: 44 45 [spamex email="test@example.com" key="protect"] 46 <span class="email">test@example<b>.protect</b>.com</span> 47 48 [spamex phone="+49!123!456"] 49 <span class="phone">+49123<b>984</b>456</span> 50 51 Use exactly two ! to split number into three parts. 33 52 34 53 == Changelog == 35 54 36 55 = 1.6.3 = 37 Public Release56 Public release 38 57 39 58 = 1.6.2 = 40 FIX Shorten Version number to 6.7 instead of 6.7.241 FIX Prefix generate_random_number with spamex42 FIX PHP 8.x return value of explode can be false43 FIX PHP 8.1 wp_get_custom_css() returns null59 FIX: Shorten version number to 6.7 60 FIX: Prefix generate_random_number with spamex 61 FIX: Handle explode() false in PHP 8.x 62 FIX: wp_get_custom_css() null fix for PHP 8.1 44 63 45 64 = 1.0 = 46 Initial release. 65 Initial release 66
Note: See TracChangeset
for help on using the changeset viewer.