[XTR] IP Threat Monitor

[XTR] IP Threat Monitor [Paid] 1.2.0

No permission to buy ($30.00)
Could the local country/ASN policy evaluation be separated from the VPN API lookup, and could repeated/concurrent lookups be reduced?
From my experience it is - that was the whole idea behind it. Maybe it depends from your configuration. After implementing the local maxmind lookups my API requests went down dramatically and as far as I can judge since then the API is not called when local data is available. The effect is the more intensive the more country and ASN blocks you use. Visitors that are not hit by a local ASN/country block will still checked against the API and since the switch from blacklisting to temporary blocking they will be checked repeatedly after the blocking has expired.
 
Hi @Elisabeth_K,
Let me give you the exact details on your questions:

1. Why some AS8075 IPs show as Guests instead of Bingbot:As @smallwheels perfectly explained, AS8075 is the entire Microsoft network, which includes Microsoft Azure cloud servers, VPS instances, and datacenters alongside the official Bing search engine. Anyone can spin up an automated scraper or script hosted on Azure.

IPTM doesn't just trust the ASN or the User-Agent string. To prevent scrapers from impersonating search engines, IPTM verifies whether the IP actually resolves to Microsoft's official search hostnames (*.search.msn.com).
  • If it's a verified crawler: IPTM awards it the official Microsoft Bing (Bingbot) badge and keeps it active.
  • If it's just a general Azure VPS or automated tool running on Microsoft's cloud: IPTM treats it as a standard guest from AS8075.
So seeing a generic guest from AS8075 simply means IPTM caught an Azure-hosted visitor that wasn't an authenticated Bing crawler!

2. Enabling APCu in XenForo's config.php:Go for it! It won't harm IPTM at all; in fact, it will make your entire forum noticeably faster.

APCu is an in-memory cache running in your server's RAM. IPTM is designed to seamlessly work with XenForo's native cache layer. When you enable APCu for XenForo, both XenForo's page/template data and IPTM's rate-limiting states live in ultra-fast memory rather than hitting disk or database. Just ensure your server has a reasonable apc.shm_size (like 64MB or 128MB in php.ini), and your site will fly during traffic spikes.

3. What "Load Distribution" really means:This is a very common point of curiosity! The "Load Distribution" chart does not measure your server's CPU or overall visitor count. Instead, it measures Request Intensity per IP Address:
  • Low (Green): Visitors making fewer than 20 requests.
  • Medium (Yellow): Active visitors making between 20 and 49 requests.
  • High (Red): Heavy scrapers or aggressive bots making 50+ requests.
Even on days with 5,000 visitors, the vast majority of human users browse 1 to 5 pages and leave. Because their individual request counts are well under 20, they fall into the "Low" category. Seeing your chart predominantly green is actually the healthiest sign possible—it means your traffic consists of distributed normal visitors rather than a single scraper hammering hundreds of pages from one IP!
 
@smallwheels regarding your reply to @Paul:Thank you as always for being so helpful in the thread! You'll be pleased to know that in the 1.1.8 release, we have fully decoupled local Country/ASN evaluations right at the front door. Moderate VPN mode now strictly adheres to rate-limiting thresholds before querying detection APIs, verified clean visits are cached for a full 24 hours, and in-flight stampede protection prevents duplicate concurrent lookups. Your API credits will be safer than ever.

Hope this clears up the curiosity! Keep enjoying IPTM.
 
I really hate being such a pain in the butt but I have some curiosities today.

#1 Both country and ASN blocked still but a few still sneak into the active list daily. Maybe ASN name too long on this one or something?

blocked active.webp
FYI, viewing the member's list is prohibited for those unregistered/unconfirmed.

#2 Blocked countries IP blacklisted by IPTM but they still show up under current visitors on the forum - both saying rate limit captcha. Shouldn't they not even make it to a captcha challenge?
weird.webp

Finally just for fun, I did some creative artwork! 🤣 I thought it might be amusing?
CrazyIdea.webp
To make it crazier, you could put a checkmark in the bottom list of categories to show or hide them? I swear I haven't been drinking. You have enough on your plate and IPTM is already super fantastic.
 
#2 issue above is definitely showing up as a pattern.

Blocked countries hitting a rate limit captcha are getting properly blacklisted but get as far as showing up in the current visitors list on the the forum. A blocked country/ASN should be clobbered before it even gets a challenge, right?

patterns.webp
 
Can confirm that something looks a bit strange sometimes. I.e. I had a visitor IP from DTAG today that was historically blacklisted and that's what it said. But at the same time it said "challenge abandoned"

Bildschirmfoto 2026-11-26 um 18.13.05.webp
Bildschirm­foto 2026-11-26 um 18.12.49.webp

The blacklisting must have been caused by Proxycheck back then, before "blocking" became the standard mode, as I don't have this ASN blacklisted and never had. So according to it's status in the log this IP should not have been challenged today but simply hard blocked.
The only thing I could imagine is that the remediate job de-blacklists such old blacklist entries silently but fails to update the visible status in the database. So possible the same thing that has caused confusion a couple of times in the past: Actual log entries for IPs that show up again, combined with an old, cause.
 
@Elisabeth_K :Yes, since you are still on 1.1.8, you are seeing the exact rate-limit-captcha behavior we talked about! The good news is that this is already completely fixed in 1.1.9 (which I am preparing to release). Once you update to 1.1.9, any blocked country/ASN or blacklisted IP hitting /rate-limit-captcha/ directly will be stopped at the door before XenForo ever records "Verifying challenge" in Current Visitors.

@smallwheels :Great observation, and I can confirm there is no silent de-blacklisting happening here—IPTM did hard-block 91.44.102.206 with a 403 today!

Here is why it looks a bit confusing in the log:
  1. Back on Sep 24, 2026 (in an earlier version of IPTM when abandoned challenges resulted in a permanent blacklist), that IP was permanently blacklisted with the reason "Challenge Failed / Abandoned".
  2. Today at 1:45 PM, that same IP knocked on /index.php again.
  3. Before blocking it, IPTM's metadata check updated the Last Request timestamp (Today at 1:45 PM) and Last Visited Page (/index.php) on its existing log entry, and immediately afterward isBlacklisted() stopped it dead with a 403 Forbidden (note Requests: 1 didn't even increment).
So it was never challenged today—it was hard-blocked immediately using its preserved historical blacklist record from September 24! (And the Remediate Bots job only touches verified search engine bots and Apple Private Relay IPs, never standard residential IPs like DTAG). If you want to clear out older historical challenge-abandoned blacklists from earlier versions, you can safely unblock them or set a blacklist retention window if desired.

I will be publishing 1.1.9 very shortly!
 
Back on Sep 24, 2026 (in an earlier version of IPTM when abandoned challenges resulted in a permanent blacklist), that IP was permanently blacklisted with the reason "Challenge Failed / Abandoned".
I do have doubts. On Sept 24th the latest version was 1.0.37 and, if I get this right, challenging countries, ASNs (and possibly IPs detected via prroxycheck) was only introduced with 1.0.49 on Oct. 17th, so ~four weeks after the IP was initially blocked. I may be wrong but I think that the "challenge abandoned" note must therefor be newer than the original log entry.

However, the webserver log shows a direct 403 as it seems with a bunch of tries today:

Code:
91.44.102.206 - - [26/Nov/2026:08:13:21 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"
91.44.102.206 - - [26/Nov/2026:08:13:21 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1"
91.44.102.206 - - [26/Nov/2026:11:19:13 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"
91.44.102.206 - - [26/Nov/2026:11:19:13 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1"
91.44.102.206 - - [26/Nov/2026:12:09:33 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"
91.44.102.206 - - [26/Nov/2026:12:09:34 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1"
91.44.102.206 - - [26/Nov/2026:12:17:32 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"
91.44.102.206 - - [26/Nov/2026:12:17:32 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1"
91.44.102.206 - - [26/Nov/2026:12:44:11 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"
91.44.102.206 - - [26/Nov/2026:12:44:11 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1"
91.44.102.206 - - [26/Nov/2026:13:45:17 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"
91.44.102.206 - - [26/Nov/2026:13:45:17 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1"
91.44.102.206 - - [26/Nov/2026:13:56:05 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"
91.44.102.206 - - [26/Nov/2026:13:56:05 +0100] "GET /index.php HTTP/2.0" 403 1144 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1"
 
Last edited:
@Osman : A question regarding this change in the latest version (1.1.8):

  • Optimized country and network policy evaluation to resolve instantly on your server without consuming external service credits.
  • Introduced smart daily verification memory for clean visitors to eliminate duplicate external queries.
My API queries went down dramatically when local checks against maxmind were introduced. What was left was a small stream of queries with mostly positive outcome and some residential proxies found regularly. Since the latest update the API get's barely ever asked - over the last days I had between 0 and 2 queries against the API:

Bildschirmfoto 2026-11-27 um 05.54.22.webp

whereas in comparison the time before 1.1.8 looked like that:
Bildschirmfoto 2026-11-27 um 06.21.50.webp
this has been relatively consistent over the last months:

Bildschirmfoto 2026-11-27 um 06.23.31.webp
I do use loads of country and ASN blocks that are performed locally, so most IPs are not checked against the API, but my core countries are not blocked but set to challenge and visitors were checked against the API, successfully identifying a small bunch of resident proxies regularly. These checks seem now to be gone. It has been quiet in the forum over the last days with roughly a third less visitors than usual and most of the delta have been bots. Still the number of API checks seems suspiciously low. Is this how it is intended to be? The settings page states

Check every new IP on first visit (cached 24h)
so even given that members are not checked and I do only have few guest vistors that are not already caught by a country and ASN block I would expect at least some checks per day and the drop in API queries between 1.1.7 and 1.1.8 is somewhat surprising.
 
@smallwheels, although not at your scale, I have seen similar results. I don't even see residential proxies listed as a block reason anymore when there used to be tons.

Since the vast majority of our unwanted traffic comes from the U.S., I've set everything coming from the U.S. to be challenged. I'm getting a solved rate of about 11% to 15%.

What concerns me are the number of registered users that get challenged who appear all to be mobile or wireless home internet users who sometimes hit the site multiple times a day with a different IP (IPv6 usually) or get a new IP every other day. I don't really know how all this works but I don't see any way around this unless IPTM looks for a cookie or something before a challenge?

Here's an example. From what I can tell, this regular is getting challenged a lot.
Challenged.webp
 
What concerns me are the number of registered users that get challenged
This should not happen at all with the right settings in IPTM, no matter if they get a new IP or where they come from. I ha this problem in the past but it is gone now since some versions ago. 1.1.8 invented a changed and more detailled setting layout for this that had to be configured. Maybe you missed that?
who appear all to be mobile or wireless home internet users who sometimes hit the site multiple times a day with a different IP (IPv6 usually) or get a new IP every other day. I don't really know how all this works but I don't see any way around this unless IPTM looks for a cookie or something before a challenge?
A logged in user has a cookie and while i.e. with Cloudflare you can only check if this cookie exists (which could be forged) IPTM, being directly tied to XF, can check if it fits the user and is valid. I did not look how IPTM does it but for me it seems to work now.
 
Osman updated [XTR] IP Threat Monitor with a new update entry:

1.1.9

With this update, security evaluation priorities have been refined, online visitor list accuracy has been improved, and admin panel charts have been made more interactive and practical.

Visitors coming from blocked countries, restricted networks, or blacklisted addresses are now stopped immediately even if they attempt to access verification challenge links directly. This prevents unauthorized traffic from appearing as pending verification in your forum's online visitors list, keeping your...

Read the rest of this update entry...
 
with the changes in 1.1.9

  • Refined the evaluation order between first-visit VPN checks and challenge-listed countries so hidden VPNs and residential proxies from challenge countries are still detected and blocked first.

API queries started to happen again after updating. Very low traffic on a Saturday, so very few queries, but the difference is clearly visible:

Bildschirm­foto 2026-11-28 um 15.45.35.webp
 
@Osman : A small issue: Occasionally, IPTM seems to fail to detect iCloud Private Relay IPs correctly. As a consequence these IPs then get forwarded to the Proxycheck API and answered with "VPN, Hosting, iCloud". As in opposite to former times before local Maxmind Checks were implemented there seems no longer to be an exemption for iCloud answers from Proxycheck these IPs then get blocked, depite being marked as iCloud in the logs:

Bildschirm­foto 2026-12-01 um 09.56.28.webp

Bildschirm­foto 2026-12-01 um 09.55.11.webp

Judging from the number of forum members that have used that IP in the past one can safely assume that this is indeed an iCloud IP that, according to the settings, should not be blocked:

Bildschirm­foto 2026-12-01 um 10.12.03.webp
 
@Osman : Another tiny feature request: In the settings it is possible to exclude CF Warp users from blocking. Makes somewhat sense as it is relatively common, so regular guests would be affected by VPN-blocking. Unfortunately it has turned out that, according to Proxycheck.io, there are residential proxies within the userbase of CF Warp.

Flamproxies:
Bildschirmfoto 2026-11-30 um 11.17.48.webp

Nullproxies:
Bildschirmfoto 2026-11-30 um 11.15.57.webp

So it would probably be good if there was a setting to challenge Warp-users as a standard rather than to block them or give them a free ride. An alternative would be to direct Warp users to the regular country/ASN blocking ruleset. This seems however less desirable as the countries used as exit node are random and so the users may be affected by geoblocking and if one blocks the CF ASN in general due to their potential poisoned hosting offerings they would be affected as well.
 
Hi @smallwheels,

Both of these points have now been addressed and included in 1.2.0:

1. iCloud Private Relay IPs occasionally blocked: Good catch! When Apple's local egress list cache happened to be refreshing or temporarily unavailable, the request fell back to ProxyCheck—and while we already had a fallback check for Cloudflare WARP responses, we were missing one for ProxyCheck's iCloud detection/operator field.In 1.2.0, we added full fallback recognition for ProxyCheck's iCloud Private Relay identifications as well, so even if the local Apple list is temporarily empty or an ASN/Country block overlaps with a relay prefix, confirmed iCloud Private Relay connections will be reliably exempted.

2. Cloudflare WARP Challenge option: That makes total sense—giving residential proxies behind WARP a free pass isn't ideal, and blocking them outright hurts legitimate users.In 1.2.0, we added a new Cloudflare WARP Policy option (Allow or Challenge (Turnstile / Captcha)). When set to Challenge, verified WARP users are prompted with a verification challenge instead of being blocked or caught by random exit-node country/ASN rules, stopping automated bots while letting real humans through.

Both changes are baked into 1.2.0 and ready to go—you'll be able to test them out as soon as it's published!
 
Just to add - it seems (since maybe 1.1.8??) that theres an issue with talking to Redis....

  • RuntimeException: IP Threat Monitor counter unavailable: Unable to increment the Redis cache counter.
  • src/addons/XENTR/IPThreatMonitor/Service/CacheManager.php:275
  • Generated by: Unknown account
  • Dec 1, 2026 at 4:13 AM

Stack trace​

#0 src/addons/XENTR/IPThreatMonitor/Service/RateLimiter.php(215): XENTR\IPThreatMonitor\Service\CacheManager->increment('count_7ec7ede1e...', 1, 120)
#1 src/addons/XENTR/IPThreatMonitor/Service/RateLimiter.php(2066): XENTR\IPThreatMonitor\Service\RateLimiter->countRequests(Object(XENTR\IPThreatMonitor\Service\CacheManager), 'count_7ec7ede1e...', 120)
#2 src/addons/XENTR/IPThreatMonitor/Service/RateLimiter.php(569): XENTR\IPThreatMonitor\Service\RateLimiter->checkRateLimitInCache('92.21.202.180', Object(XFMG\XF\Entity\User))
#3 src/addons/XENTR/IPThreatMonitor/Listener.php(187): XENTR\IPThreatMonitor\Service\RateLimiter->checkRateLimit()
#4 src/XF/Extension.php(86): XENTR\IPThreatMonitor\Listener::appPubStartEnd(Object(XF\Pub\App))
#5 src/XF/App.php(3382): XF\Extension->fire('app_pub_start_e...', Array, NULL)
#6 src/XF/Pub/App.php(255): XF\App->fire('app_pub_start_e...', Array)
#7 src/XF/App.php(2836): XF\Pub\App->start(true)
#8 src/XF.php(850): XF\App->run()
#9 index.php(23): XF::runApp('XF\\Pub\\App')
#10 {main}

-------------

Previous RuntimeException: Redis did not return a counter. - src/addons/XENTR/IPThreatMonitor/Service/CacheManager.php:268
#0 src/addons/XENTR/IPThreatMonitor/Service/RateLimiter.php(215): XENTR\IPThreatMonitor\Service\CacheManager->increment('count_7ec7ede1e...', 1, 120)
#1 src/addons/XENTR/IPThreatMonitor/Service/RateLimiter.php(2066): XENTR\IPThreatMonitor\Service\RateLimiter->countRequests(Object(XENTR\IPThreatMonitor\Service\CacheManager), 'count_7ec7ede1e...', 120)
#2 src/addons/XENTR/IPThreatMonitor/Service/RateLimiter.php(569): XENTR\IPThreatMonitor\Service\RateLimiter->checkRateLimitInCache('92.21.202.180', Object(XFMG\XF\Entity\User))
#3 src/addons/XENTR/IPThreatMonitor/Listener.php(187): XENTR\IPThreatMonitor\Service\RateLimiter->checkRateLimit()
#4 src/XF/Extension.php(86): XENTR\IPThreatMonitor\Listener::appPubStartEnd(Object(XF\Pub\App))
#5 src/XF/App.php(3382): XF\Extension->fire('app_pub_start_e...', Array, NULL)
#6 src/XF/Pub/App.php(255): XF\App->fire('app_pub_start_e...', Array)
#7 src/XF/App.php(2836): XF\Pub\App->start(true)
#8 src/XF.php(850): XF\App->run()
#9 index.php(23): XF::runApp('XF\\Pub\\App')
#10 {main}

Request state​

array(4) {
["url"] => string(51) "/community/link-directory/mark-read?date=1706341129"
["referrer"] => bool(false)
["_GET"] => array(1) {
["date"] => string(10) "1706341129"
}
["_POST"] => array(0) {
}
}
 
I'm also seeing another intermittant issue...

  • MaxMind\Db\Reader\InvalidDatabaseException: [XTR] IP Threat Monitor: GeoIP GeoLite2-ASN Reader Error: Error opening database file (****/xentrIPThreatMonitor/GeoLite2-ASN.mmdb). Is this a valid MaxMind DB file?
  • src/addons/XENTR/IPThreatMonitor/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php:352
  • Generated by: Unknown account
  • Nov 30, 2026 at 4:09 AM
Seems like this was a one (or two) off when IPTM was last updated, since it has been working fine since.
 
Last edited:
Back
Top Bottom