From 41fba0ef4aafa1fbd3404bfcab3c13a58cb0d940 Mon Sep 17 00:00:00 2001 From: VBGAMER45 Date: Fri, 28 Nov 2025 19:02:55 -0600 Subject: [PATCH] Update restoring-original-visitor-ips.mdx Updated MyBB forums with the newer plugin for MyBB 1.8.x and manual code changes as well. --- .../restoring-original-visitor-ips.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/content/docs/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips.mdx b/src/content/docs/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips.mdx index 1b2b6676bc1399..b66dae8b09375d 100644 --- a/src/content/docs/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips.mdx +++ b/src/content/docs/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips.mdx @@ -352,9 +352,13 @@ More recent versions of MyBB include a Scrutinize User's IP address option. `Admin CP > Configuration > Server and Optimization Options > Scrutinize User's IP address? > Yes` -Alternatively, you may install the [Cloudflare management plugin](https://mods.mybb.com/view/antoligy-mybb-cloudflare-management-plugin) available for MyBB 1.6. +Alternatively, you may install the [Cloudflare management plugin](https://community.mybb.com/mods.php?action=view&pid=651) available for MyBB 1.8.x +#### MyBB 1.8.x +1. Navigate to `./inc/functions.php`. +2. In function `function get_ip()` around line 4471 +4. Find and replace:`$ip = strtolower($_SERVER['REMOTE_ADDR']);`With:`$ip = strtolower($_SERVER['HTTP_CF_CONNECTING_IP']);` -#### MyBB 1.6.0, 1.6.1, 1.6.2, or 1.6.3 +#### MyBB 1.6.x, 1.6.1, 1.6.2, or 1.6.3 1. Navigate to `./inc/functions.php`. 2. Go to line 2790.