by SuccessMedia on WordPress.org
Spamex provides a shortcode to obfuscate email addresses and phone numbers in HTML. This protects them from scraping bots while staying readable for users.
[spamex email="name@domain.tld" key="secret"][spamex phone="+1!123!456"]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.
[spamex email=”test@example.com” key=”protect”]
test@example.protect.com
[spamex phone=”+49!123!456″]
+49123984456
Use exactly two ! to split number into three parts.