NEW: The MainWP MCP Server lets AI assistants like Claude and Codex manage all your WordPress sites through your MainWP Dashboard.

How to Disable Live Traffic in Wordfence on Your Site

Published on December 21, 2022 by Sebastian Moran in MainWP Blog under Tips & Tricks
Heads up: This page may include affiliate links. Read the full disclaimer.
Disable Live Traffic - Wordfence

If you notice many hits in your site’s analytics that have the following query string showing in the URL on your site;

/?wordfence_lh=1

Wordfence - WordPress Plugin

Then the query string is added by the live traffic feature in the Wordfence plugin. The real-time live traffic feature in Wordfence adds a query string to URLs on the site to track those.

To disable live traffic in Wordfence, you can set the Live Traffic Options to “Security Only”. From your wp-admin, navigate to:

Wordfence > All Options > Tool Options > Live Traffic Options

Wordfence - Live Traffic Options

Also, disable the signed-in users like below:

Wordfence - Live Traffic Options: Security Only

Alternatively, the Wordfence plugin has a constant that can be set in the wp-confg.php file, which will disable the live traffic feature and stop other administrator users from changing the live traffic mode to all traffic mode.

define('WORDFENCE_DISABLE_LIVE_TRAFFIC', true);

However, since Wordfence release 7.2.3, the default traffic mode for live traffic has been security only.

Useful Links

Share

Manage Unlimited WordPress Sites from One Dashboard!

  • Privacy-first, Open Source, Self-hosted
  • Easy Client Management
  • 15+ & 30 + Premium Add-ons
  • Bulk Plugins & Themes Management
Get Pro Now

Categories

Recent Posts

Search MainWP.com

[searchwp_form id="1"]