Title: JS Links &#8211; SEO Link Obfuscation
Author: Pierre Ribeaucourt
Published: <strong>2025 年 10 月 24 日</strong>
Last modified: 2025 年 10 月 24 日

---

搜尋外掛

![](https://ps.w.org/js-links/assets/banner-772x250.png?rev=3384096)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/js-links/assets/icon-256x256.png?rev=3384096)

# JS Links – SEO Link Obfuscation

 由 [Pierre Ribeaucourt](https://profiles.wordpress.org/pierreseo/) 開發

[下載](https://downloads.wordpress.org/plugin/js-links.2.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/js-links/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/js-links/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/js-links/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/js-links/#developers)

 [技術支援](https://wordpress.org/support/plugin/js-links/)

## 外掛說明

**JS Links** lets you obfuscate links so crawlers can’t follow them — while users
still can.
 It replaces `<a>` tags with accessible `<span>` elements (`role="link"`,`
tabindex="0"`) containing Base64-encoded URLs.

✅ **Use cases**
 – Hide links to legal pages, login, or affiliate URLs – Prevent
PageRank dilution in footers or widgets – Keep a clean, SEO-friendly internal linking
structure

✅ **Key features**
 – Lightweight, no external calls or tracking – 100 % reversible(
disable = restores original links) – Works with all SEO plugins (Yoast, Rank Math,
SEOPress) – Compatible with any theme or builder – Accessible (keyboard navigation
supported) – Optionally disable obfuscation on specific pages – Custom CSS styling
per area (content, menu, footer, widget)

✅ **Why not just use `nofollow`?**
 Because `nofollow` links are still visible 
to crawlers and can leak PageRank. JS Links removes the `href` entirely and hides
the destination — Google can’t see it, so no PageRank flows.

✅ **Safe and compliant**
 JS Links follows WordPress coding standards and includes:–
URL sanitization (`esc_url_raw()`) – Output escaping (`esc_attr()`, `wp_kses_post()`)–
CSS filtering (`safecss_filter_attr()`) – Protection against reverse tabnabbing (`
noopener noreferrer`)

🧠 _Result: total control of your internal link flow, with zero impact on UX._

### Description (FR)

**JS Links** permet d’obfusquer certains liens pour empêcher Google et les robots
d’exploration de les suivre — tout en conservant un comportement identique pour 
l’utilisateur.
 Les balises `<a>` sont remplacées par des `<span>` cliquables (`
role="link"`, `tabindex="0"`) contenant l’URL encodée en Base64.

✅ **Cas d’usage**
 – Empêcher la transmission de PageRank sur les liens non stratégiques(
CGU, mentions légales, etc.) – Bloquer les liens d’affiliation ou externes sans 
casser le design – Préserver un maillage interne propre et hiérarchisé

✅ **Fonctionnalités**
 – Ultra-léger et 100 % réversible – Compatible avec tous
les thèmes et plugins SEO – Accessible au clavier – Personnalisation visuelle simple(
CSS par zone) – Exclusion possible de certaines pages

✅ **Différence avec `nofollow`**
 Un lien `nofollow` reste une balise `<a>` visible
par Google. JS Links, lui, supprime l’attribut `href` et encode l’URL — donc **Google
ne voit pas le lien.**

✅ **Sécurité**
 JS Links respecte les bonnes pratiques WordPress : – Nettoyage 
et validation des URLs – Échappement systématique des sorties – Filtrage CSS sécurisé–
Protection contre le reverse tabnabbing – Fallback sans JavaScript (`<noscript>`)

🧠 _En clair : tu gardes ton jus SEO sans sacrifier ton ergonomie._

### Credits

Developed and maintained by [Pierre Ribeaucourt](https://ribeaucourt.fr)

### Support

If you encounter any issues or have suggestions, feel free to open a thread on the
[Support Forum](https://wordpress.org/support/plugin/js-links/).

## 安裝方式

 1. Upload the `js-links` folder to `/wp-content/plugins/`
 2. Activate the plugin through the “Plugins” menu in WordPress
 3. In the Gutenberg editor, use the **JS Link** button.
 4. For menus, a dedicated field is available under _Appearance > Menus_.

## 常見問題集

### How is this different from rel=”nofollow”?

A `nofollow` link is still a visible `<a>` tag and may leak PageRank.
 JS Links 
removes the `href` attribute and encodes the URL — Google doesn’t follow it.

### Is it compatible with SEO plugins like Yoast, Rank Math, or SEOPress?

Yes. JS Links runs after SEO plugins and doesn’t interfere with their output.

### Is it accessible?

Yes — links are fully keyboard-activable (`Enter` / `Space`) via `role="link"` and`
tabindex="0"`.
 However, some screen readers that only list real `<a>` links may
skip them. We recommend not obfuscating critical navigation or accessibility links.

### Can I exclude specific pages?

Yes, by listing their relative URLs (e.g., `/`, `/contact`, `/legal`) in the exclusion
field.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈JS Links – SEO Link Obfuscation〉的開發相關工作。

參與者

 *   [ Pierre Ribeaucourt ](https://profiles.wordpress.org/pierreseo/)

[將〈JS Links – SEO Link Obfuscation〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/js-links)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/js-links/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/js-links/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/js-links/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/js-links/)。

## 變更記錄

#### 2.0.0

 * Initial WordPress.org release
 * WP 6.8 compatibility / PHP 7.4+
 * Improved accessibility and sanitization

## 中繼資料

 *  版本 **2.0.0**
 *  最後更新 **11 個月前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 5.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.10**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/js-links/)
 * 標籤:
 * [accessibility](https://tw.wordpress.org/plugins/tags/accessibility/)[internal linking](https://tw.wordpress.org/plugins/tags/internal-linking/)
   [links](https://tw.wordpress.org/plugins/tags/links/)[obfuscation](https://tw.wordpress.org/plugins/tags/obfuscation/)
   [seo](https://tw.wordpress.org/plugins/tags/seo/)
 *  [進階檢視](https://tw.wordpress.org/plugins/js-links/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/js-links/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/js-links/reviews/)

## 參與者

 *   [ Pierre Ribeaucourt ](https://profiles.wordpress.org/pierreseo/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/js-links/)