Title: Smart Traffic Source Filter for WordPress
Author: Medium Interactive
Published: <strong>2025 年 10 月 23 日</strong>
Last modified: 2025 年 12 月 18 日

---

搜尋外掛

![](https://ps.w.org/mdi-http-referer-block/assets/banner-772x250-old.jpg?rev=3470899)

![](https://ps.w.org/mdi-http-referer-block/assets/icon-128x128-odl.png?rev=3470899)

# Smart Traffic Source Filter for WordPress

 由 [Medium Interactive](https://profiles.wordpress.org/mediuminteractive/) 開發

[下載](https://downloads.wordpress.org/plugin/mdi-http-referer-block.1.0.2.zip)

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

 [技術支援](https://wordpress.org/support/plugin/mdi-http-referer-block/)

## 外掛說明

Tired of spam form submissions from suspicious referral sources? Want to block or
redirect traffic from specific ad networks that send low-quality leads? Managing
traffic quality shouldn’t require a developer. We made it easy!

Smart Traffic Source Filter gives WordPress site owners complete control over user
experience based on traffic origin. By analyzing the HTTP referrer (both server-
side via PHP and client-side via JavaScript when headers are missing), this plugin
makes it easy to detect where visitors come from and apply different behavior—whether
you need to filter spam, protect forms, redirect unwanted traffic, or optimize conversions
for high-quality sources.

You can define specific referrer domains or patterns, and when a visitor matches
those conditions, the plugin can:

 * Display a small notification (server-side) showing the detected referrer host
   or path.
 * Hide or reveal specific elements on your site using CSS selectors.
 * Redirect visitors from certain sources to a different URL.

This gives marketers, advertisers, and site owners fine control over how different
audiences see the site.

Example use cases:

 * Hide contact forms when users arrive through syndicated search traffic to prevent
   spam or low-quality leads.
 * Hide pricing details when a user comes from social media to encourage engagement
   before pricing exposure.
 * Redirect visitors from affiliate networks to a dedicated landing page.
 * Show a simple banner confirming that the user arrived via a partner campaign.

The plugin sets a tracking cookie (`mdi_syndicated_ref`) to remember the detected
source for the configured number of days, ensuring consistent visibility rules on
repeat visits.

MDI HTTP Referer Block helps you tailor on-site experiences dynamically based on
real visitor origin — simple, server-side controlled, and privacy-respecting.

For a full guide on blocking syndicated search traffic (e.g., Google Ads Performance
Max), see:
 https://mediuminteractive.com/how-to-block-syndicated-search-traffic-
from-performance-max-campaigns-in-google-ads/

## 螢幕擷圖

 * [[

## 安裝方式

 1. Upload the `mdi-http-referer` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Configure settings at: Settings  HTTP Referer.

## 常見問題集

### Will this expose the full referrer URL publicly?

No. The plugin only outputs host and path in the notification to avoid leaking query
parameters. Referrer data is sanitized.

### Does the plugin support regex matching?

The client-side code treats configured domain strings as patterns and will try to
use them as regex. Keep patterns simple (example: `example\.com` or `partner.example`).

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈Smart Traffic Source Filter for WordPress〉的開發相關工作。

參與者

 *   [ Medium Interactive ](https://profiles.wordpress.org/mediuminteractive/)

[將〈Smart Traffic Source Filter for WordPress〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/mdi-http-referer-block)

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

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

## 變更記錄

#### 1.0

 * Initial public release.

#### 1.0.1

 * Update assets

#### 1.0.2

 * Update assets

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **5 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  語言
 * [English (US)](https://wordpress.org/plugins/mdi-http-referer-block/)
 * 標籤:
 * [cookie](https://tw.wordpress.org/plugins/tags/cookie/)[hide content](https://tw.wordpress.org/plugins/tags/hide-content/)
   [redirect](https://tw.wordpress.org/plugins/tags/redirect/)[referer](https://tw.wordpress.org/plugins/tags/referer/)
   [referrer](https://tw.wordpress.org/plugins/tags/referrer/)
 *  [進階檢視](https://tw.wordpress.org/plugins/mdi-http-referer-block/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/mdi-http-referer-block/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/mdi-http-referer-block/reviews/)

## 參與者

 *   [ Medium Interactive ](https://profiles.wordpress.org/mediuminteractive/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/mdi-http-referer-block/)