What It Does
Hide Telephone Numbers from Spam Bots adds an [nxt_encode] shortcode. It turns a clickable link such as tel:+1555123 into a link whose address is written as HTML character codes in the page source. Visitors see and click the number as usual. A simple scraper that looks for tel: in the page source does not find it.
It is a Nexter Extension Pro feature, found in the Advanced Security options of the Security section.
Why It Matters
Phone numbers written as plain tel: links are easy for bots to collect. The result is unwanted calls and messages. You still want real visitors to tap and call, so removing the link is not an option.
What You Get
- The
[nxt_encode]shortcode with two attributes:linkandclass - A clickable link that works for visitors
- An optional CSS class on the link for your own styling
Benefits
- Fewer phone numbers collected by simple scrapers
- No separate plugin. You add one shortcode where the number should appear
- Works for other link types too, so you can protect an email or SMS link the same way
Capabilities
| Part | What It Does |
|---|---|
| link | Required. The address to open, for example tel:+1555123. Start it with tel:, mailto:, sms:, http: or https:. A link with any other scheme, such as javascript:, is dropped and nothing is shown. |
| class | Optional. Adds your own CSS class to the link. |
| Text between the tags | Required. This is what visitors see and click, for example the formatted phone number. If it is empty, nothing is shown. |
How It Works
- When the option is on, Nexter registers the
[nxt_encode]shortcode. - The shortcode cleans the link and allows only these schemes:
http,https,tel,mailtoandsms. If the link has another scheme, it returns nothing. - Each character of the link is written as an HTML character code in the
href. Browsers decode it, so the link works. - The link is output with
rel="nofollow". The text you put between the tags is shown as normal text.
How to Use It
Turn the option on first.
- From the WordPress Dashboard, go to Nexter > Nexter Extension > Security.
- In the Advanced Security section, turn the toggle on, then click the gear icon.
- In the Advanced Security popup, turn on Hide Telephone Secure Spam Bots and click Save.


Then add the shortcode on any page or post:
[nxt_encode link="tel:+1555123"]+1 (555) 123-4567[/nxt_encode]
Visitors see +1 (555) 123-4567 and can click it. In the page source, the link address is written as character codes.

Use Cases
- A contact page with a click-to-call number
- A footer or header number on a business site
- An SMS link, using
sms:as the link start - An email link, using
mailto:as the link start
Limitations
- It needs Nexter Extension Pro. Without it the shortcode is not available.
- Only the link address is encoded. The text between the tags is plain text, so a number written there can still be read from the page source. Use wording such as Call us if you want the number hidden there too.
- Encoding makes harvesting harder. It does not stop a bot that decodes HTML character codes.
- The shortcode works only where WordPress runs shortcodes, such as post content. It does not change numbers typed elsewhere on your site.
- Links that use another scheme, such as
javascript:, are dropped and nothing is shown.
Troubleshooting
- The shortcode shows as plain text on the page. The option is off. Turn on the Advanced Security toggle and Hide Telephone Secure Spam Bots, then save. The shortcode is only registered while both are on.
- Nothing appears. The link or the text between the tags is empty, or the link uses a scheme that is not allowed. Use
tel:,mailto:,sms:,http:orhttps:. - The shortcode shows as plain text on a site with only the free plugin. This feature is part of Nexter Extension Pro. Install and activate Pro as well as the free plugin.
- The number is still visible in the page source. That is the text between the tags, which is not encoded. Only the link address is.










