跳到内容

Loyalty Links

v1.0.1

Jose Mortellaro · 2026年2月14日 上架

Conditionally break external links based on referrer history.

正在使用
10 以下
评分
暂无
累计下载
629
最近更新
2026年10月2日
需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+

Loyalty Links is a WordPress plugin that implements a “give and take” approach to external linking. The plugin tracks which external domains have sent visitors to your site via referrers, and only allows links to those domains to remain functional. Links to domains that haven’t recently referred visitors are “broken” (href changed to “#”) while remaining visible on the page.

Key Features

  • Referrer Tracking: Automatically tracks external domains that send visitors to your site
  • Dynamic Link Breaking: Links to domains without recent referrers are automatically disabled
  • Selective Monitoring: Only monitor specific domains you choose – other external links remain untouched
  • Configurable Retention: Set how many days to retain referrer records (default: 30 days)
  • Test Mode: Add test domains to verify functionality without waiting for actual referrals
  • Cache-Friendly: Uses REST API endpoints for dynamic data, compatible with WP Rocket, WP Fastest Cache, and other caching plugins
  • Performance Optimized: Asynchronous script loading and efficient database operations

How It Works

  1. Track Referrers: When a visitor arrives from an external domain (in your monitored list), JavaScript sends the referrer information to a REST API endpoint which records the domain, timestamp, and increments the visit count
  2. Approve Domains: Domains that have sent referrers within your retention period are considered “approved”
  3. Break Links: Links pointing to non-approved domains have their href changed to # and pointer-events: none applied
  4. Real-Time Updates: Approved domains are fetched dynamically via REST API, ensuring cache compatibility

Use Cases

  • Encourage reciprocal linking by only allowing functional links to sites that link back to you
  • Create a “loyalty” system where sites that send traffic get link benefits
  • Test link management strategies without manual intervention
  • Maintain link quality by prioritizing domains that drive traffic

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums