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
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
Also, disable the signed-in users like below:
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
- https://www.wordfence.com/help/tools/live-traffic/
- https://mainwp.com/handy-wordfence-constants/
- https://www.wordfence.com/help/advanced/constants/
- https://wordpress.org/support/topic/wordfence_lh1-receiving-hundreds-of-hits-what-is-it/
- https://wordpress.org/support/topic/how-to-remove-or-redirect-wordfence-urls-wordfence_lh1/