Title: Email Address Obfuscation
Author: Neotrendy
Published: <strong>9 Tháng 3, 2022</strong>
Last modified: 8 Tháng 11, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/email-address-obfuscation/assets/banner-772x250.png?rev=3179653)

![](https://ps.w.org/email-address-obfuscation/assets/icon-256x256.png?rev=3179653)

# Email Address Obfuscation

 Bởi [Neotrendy](https://profiles.wordpress.org/neotrendy/)

[Tải về](https://downloads.wordpress.org/plugin/email-address-obfuscation.1.3.0.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/email-address-obfuscation/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/email-address-obfuscation/#reviews)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/email-address-obfuscation/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/email-address-obfuscation/)

## Mô tả

Email Address Obfuscation is a lightweight plugin that adds the `[obfuscate_email]`
and `[obfuscate_phone]` shortcodes. They encode the email address or phone number
with the built-in WordPress function [antispambot()](https://developer.wordpress.org/reference/functions/antispambot/):
characters are randomly converted to HTML entities, so simple bots that scan the
page source cannot read them. Browsers decode the entities, so visitors see the 
address or number as usual.

The plugin uses no JavaScript, stores no data and does not connect to any external
service.

#### Features

 * Obfuscate a plain-text email address or phone number
 * Create an obfuscated clickable `mailto:` or `tel:` link
 * Use the shortcode inside your own link to set your own link text
 * Add custom CSS classes to the link
 * Add an email subject to the link

#### Email address

**Plain-text email address**

    ```
    [obfuscate_email email="your@example.com"]
    ```

**Clickable email address**

    ```
    [obfuscate_email email="your@example.com" link=true]
    ```

**Clickable email address with CSS classes**

    ```
    [obfuscate_email email="your@example.com" link=true class="my-class another-class"]
    ```

**Clickable email address with email subject**

    ```
    [obfuscate_email email='your@example.com?subject=My custom email subject' link=true]
    ```

The subject is added to the `mailto:` link only; the link text is the email address.
Other `mailto:` parameters can be added the same way, separated by `&`, for example`?
subject=Hello&body=Hi there`.

**Link with your own text**

Without `link=true`, the shortcode outputs the email address including the subject
as text, so you can use it inside your own link, for example in a Custom HTML block:

    ```
    <a href="mailto:[obfuscate_email email='your@example.com?subject=Hello']">Write to us</a>
    ```

#### Phone number

**Plain-text phone number**

    ```
    [obfuscate_phone phone="+421 000 000 000"]
    ```

**Clickable phone number**

    ```
    [obfuscate_phone phone="+421 000 000 000" link=true class="my-class"]
    ```

The number is displayed as written. The `tel:` link contains only the digits and
the leading `+`, e.g. `tel:+421000000000`.

**Link with your own text**

Write the number without spaces when you use it inside your own link, for example
in a Custom HTML block:

    ```
    <a href="tel:[obfuscate_phone phone='+421000000000']">Call us</a>
    ```

#### Shortcode parameters

 * `email` (required for `[obfuscate_email]`) – The email address, optionally followed
   by a query string such as `?subject=...`. If the address is not valid, the shortcode
   outputs nothing.
 * `phone` (required for `[obfuscate_phone]`) – The phone number: 3 to 15 digits,
   optionally starting with `+`, separated by spaces or `-` `.` `/` `(` `)`. If 
   the number is not valid, the shortcode outputs nothing.
 * `link` (optional) – Set to `true` to output a clickable link. Without it, the
   address or number is output as plain text.
 * `class` (optional) – Space-separated list of CSS classes for the link.

## Ảnh màn hình

[⌊Using the shortcode in the block editor.⌉⌊Using the shortcode in the block editor
.⌉[

Using the shortcode in the block editor.

[⌊Email address displayed on the front end.⌉⌊Email address displayed on the front
end.⌉[

Email address displayed on the front end.

[⌊Obfuscated email address in the page source.⌉⌊Obfuscated email address in the 
page source.⌉[

Obfuscated email address in the page source.

## Hỏi đáp

### How does it work?

The shortcodes pass the email address or phone number to the WordPress function `
antispambot()`, which randomly converts characters to HTML entities. Browsers display
the text normally, so there are no visible changes for your visitors.

### Does it stop all spam bots?

No. HTML-entity encoding stops simple harvesting bots that read the raw page source.
Bots that decode HTML entities or render the page like a browser can still read 
the address or number.

### Where can I use the shortcodes?

Anywhere WordPress processes shortcodes, for example in posts and pages using the
Shortcode block of the block editor, or in the classic editor.

### How can I check that the plugin works?

Open the page source (`Ctrl + U` in most browsers) and find the email address. Instead
of the readable address you should see plain characters mixed with HTML entities
such as `&#64;`.

Please note: the Inspector in browser developer tools decodes HTML entities automatically.
Use _View page source_ instead.

## Đánh giá

![](https://secure.gravatar.com/avatar/80b1731938bb85ba03c2c14429a74575bc28ef5ffb993609ec8ec8f934d253bd?
s=60&d=retro&r=g)

### 󠀁[A simple but efficient solution](https://wordpress.org/support/topic/a-simple-but-efficient-solution/)󠁿

 [Lukas Cech](https://profiles.wordpress.org/lukascech/) 8 Tháng 9, 2025

Just what I was looking for, thanks!

![](https://secure.gravatar.com/avatar/39a932effeea71cd4f7f4ff167ea1cca1fd832db475adcc1225327e01ef91b2c?
s=60&d=retro&r=g)

### 󠀁[Excellent – a badly needed plugin](https://wordpress.org/support/topic/excellent-a-badly-needed-plugin/)󠁿

 [groggy72](https://profiles.wordpress.org/groggy72/) 19 Tháng 6, 2025

Thanks to the dev for an awesome plugin. Not all heroes wear capes.

![](https://secure.gravatar.com/avatar/05647cf227bf838d8bc377b79f2e1cd622677c11ce9351940469bc701c1b4b00?
s=60&d=retro&r=g)

### 󠀁[Works as designed](https://wordpress.org/support/topic/works-as-designed-27/)󠁿

 [netro1](https://profiles.wordpress.org/netro1/) 18 Tháng 11, 2024

5-stars – Very useful plugin which does what is it claiming to do. Thanks developer.

![](https://secure.gravatar.com/avatar/fee43d56bff672749cc0fb697727b2b6c1b9ae309d72a49b6a9ca7d10550fbc5?
s=60&d=retro&r=g)

### 󠀁[Does exactly what it says it will](https://wordpress.org/support/topic/does-exactly-what-it-says-it-will-16/)󠁿

 [Scott DeLuzio](https://profiles.wordpress.org/scottdeluzio/) 14 Tháng 10, 2022

The best plugins are the ones you install and they just work. This is one of those
plugins. Thanks for creating a simple tool to obfuscate email addresses.

 [ Đọc tất cả 4 đánh giá ](https://wordpress.org/support/plugin/email-address-obfuscation/reviews/)

## Người đóng góp & Lập trình viên

“Email Address Obfuscation” là mã nguồn mở. Những người sau đã đóng góp vào plugin
này.

Những người đóng góp

 *   [ Neotrendy ](https://profiles.wordpress.org/neotrendy/)

[Dịch “Email Address Obfuscation” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/email-address-obfuscation)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/email-address-obfuscation/),
check out [SVN repository](https://plugins.svn.wordpress.org/email-address-obfuscation/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/email-address-obfuscation/)
qua [RSS](https://plugins.trac.wordpress.org/log/email-address-obfuscation/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.3.0

 * New: `[obfuscate_phone]` shortcode obfuscates phone numbers, optionally as a 
   clickable `tel:` link.
 * Fix: Multiple `mailto:` parameters (e.g. `?subject=...&body=...`) were double-
   encoded and the email client did not receive them.
 * Fix: The link text showed the email subject; it now shows only the email address.
 * Fix: Invalid email addresses (e.g. containing spaces) are no longer repaired 
   or output as an empty `mailto:` link; the shortcode outputs nothing.
 * Change: Removed the `title` attribute from the link (better accessibility).
 * Change: Corrected the minimum required WordPress version to 3.6.
 * Change: Translations are provided by translate.wordpress.org; the bundled Slovak
   translation was removed.
 * Security: Added protection against direct file access.

#### 1.2.0

 * Added support for email subject.

#### 1.1.0

 * Security Fix: Resolved a Stored Cross-Site Scripting (XSS) vulnerability in the`
   class` parameter of the shortcode, allowing Contributor+ users to inject malicious
   scripts. (CVE-2024-11935 | Reported by _theviper17y_)
 * Minor code improvements and optimizations.

#### 1.0.1

 * Tested compatibility with WordPress 6.2.

#### 1.0.0

 * Tested compatibility with WordPress 6.1.1.
 * Added translation folder and POT file.

#### 0.9.2

 * Tested compatibility with WordPress 6.0.3.

#### 0.9.1

 * Shortcode changed from email_obfuscate to obfuscate_email.

#### 0.9.0

 * Release Candidate.

## Meta

 *  Phiên bản **1.3.0**
 *  Cập nhật lần cuối **6 ngày trước**
 *  Số lượt cài đặt **2.000+**
 *  Phiên bản WordPress ** 3.6 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Phiên bản PHP ** 5.6 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/email-address-obfuscation/)
 * Thẻ
 * [anti-spam](https://vi.wordpress.org/plugins/tags/anti-spam/)[email](https://vi.wordpress.org/plugins/tags/email/)
   [obfuscation](https://vi.wordpress.org/plugins/tags/obfuscation/)[phone](https://vi.wordpress.org/plugins/tags/phone/)
   [protect](https://vi.wordpress.org/plugins/tags/protect/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/email-address-obfuscation/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/email-address-obfuscation/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/email-address-obfuscation/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/email-address-obfuscation/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/email-address-obfuscation/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/email-address-obfuscation/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/email-address-obfuscation/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/email-address-obfuscation/reviews/)

## Những người đóng góp

 *   [ Neotrendy ](https://profiles.wordpress.org/neotrendy/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/email-address-obfuscation/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://paypal.me/neotrendy)