[XTR] IP Threat Monitor

[XTR] IP Threat Monitor [Paid] 1.2.0

No permission to buy ($30.00)
It's the #1 nuisance back for another day...

Happened to see Applebot on the forum under robots. Applebot is not permitted so I did some digging

Applebot.webp

I've probably seen 10 of these today and I was away for several hours. It appears this only happens on IPv6 addresses that are probably mobile users?

I've also seen this scenario multiple times in the last 24 hours from various members. I don't know what this means but it is unsettling.

NotLegit.webp

I saw one of these imposters under the name of an admin account. It encouraged me to finally setup 2FA for my 2 admin and 1 mod accounts and for access to the ACP. I should have done that sooner.
 
Osman updated [XTR] IP Threat Monitor with a new update entry:

1.1.7

With this update, important improvements have been implemented for online visitor tracking, search engine crawler synchronization, and overall system stability.

An issue where verified search engine bots appeared active in the threat log but were missing or delayed in the forum online statistics has been completely resolved. Verified search engine crawlers visiting your community now synchronize seamlessly with XenForo's online visitor list and robot widgets in real time.

Additionally, an...

Read the rest of this update entry...
 
Oh Crikey. Been on hols for a few weeks (due back to the UK on the weekend), and there's about a zillion updates :D
Gonna need a lot of reading and head scratching to ease my way back into this one (Clue : I'm currently on 1.0.49!!)..... 🤦‍♂️
 
is it just me thats seen a recent uplift in the numbers....?? (For clarity i have around 6k users, and before the chaos around 500 unique visitors a day). My proxycheck.io has gone from minimal to exceeding 40k queries a day, with no changes being made (i was on hols!)

1794794614756.webp

I only have googlebot active when it comes to allowed bots...

1794795019373.webp
 
Last edited:
My proxycheck.io has gone from minimal to exceeding 40k queries a day, with no changes being made
If you start to block nasty countries and ASNs via using the option for local Maxmind DB the queries will go down massively. ATM not much seems to be blocked - have you run out of query budget at proxycheck?
 
I had, and ran out again after around 4 hours today... :(
so you clearly should configure local Maxmind Lookups within IP Threat Manager and start to block countries that are not important to you and some of the nasty ASNs where nothing but trouble comes from. Using local Maxmind lookups saves API queries.

Via the Analytics Screen you see the countries and ASNs with the biggest amount of requests.
In the Proxycheck Dashboard you can identify nasty ASNs.

As a start it it probably a good idea to block CN, AR, MX, IN, VN, BR, RU, IR, BD and SG. If you can afford to block US this will reduce your traffic dramatically. If you can't afford to block the US do yourself a favor and start blocking bad ASNs from the US - there are loads of them that bombard you with requests, many of them server ranges where never ever a genuine request is coming from. Same goes for a lot of ASNs that spread internationally through various countries.

I've blocked way more than 100 countries and >650 ASNs. As a result, I rarely reach the free 1.000 requests per day to proxycheck any more, most days are way less than that. Before the local Maxmind DB existed it was a couple of 1000 most of the time (I've never been hit by an amount in the area you experience, thankfully). As I force challenge guests even from my core countries on top of that (due to the residential proxies spread throughout basically every internet provider) there are barely any scrapers left that reach my forum. And the whole thing is running basically almost maintenance free. Took a long shot to get there but now I enjoy the ease of life.

I can send you my current ASN-list as a kickstart if you like - just drop me a PN.
 
Last edited:
@Paul : One other thing that you might or might not have noticed: IP Threat Monitor has chanced it's behavior regarding blocking/blacklisting quite recently: It used to put any IP that has been reported by the proxycheck API into the blacklist and it stayed there forever (if you decided to never throw away the blacklist, which is I think the standard setting). This had three consequences:

  • if an IP that was/is blacklisted shows up again it will be blocked w/o a new query to proxycheck. Obviously this may safe on API calls to a degree.
  • the blacklist grows constantly and so does your database
  • if a former bad IP is no longer bad it will still be blocked. This can fire back especially with residential proxies, as they change their IPs regularly, ending up in false positives, overblocking and harming genuine users.
The standard behaviour changed a couple of weeks ago from blacklisting to temporary blocking. Again, this has consequences:
  • your blacklist does no longer grow continuously and so does your database
  • risc of false posives / overblocking due to historical blacklisting is basically gone for new IPs
  • the number of API calls goes up quite a bit, as the API will now be called again when the same IP shows up again
To migitate this third point country and ASN blocks that use the local maxmind db instead of proxycheck are the best approach. Also, they avoid checking proxycheck even for new IPs. As I still have my blacklist in place that had accumulated ~340.000IPs over time

Bildschirmfoto 2026-11-16 um 18.55.21.webp

I also see an interesting pattern: There are way more fresh IPs in use by the scrapers than historically known ones as you can see in the chart in my dashboard:

Bildschirmfoto 2026-11-16 um 18.56.20.webp
The blocked ones outperform the blacklisted ones dramatically. Old, blacklisted IPs are still blacklisted (in red), new IPs are blocked (in yellow). In Numbers, over the last 24h:

Bildschirmfoto 2026-11-16 um 18.56.52.webp
At the same time, my proxycheck dashboard for the same time frame looks like that:

Bildschirmfoto 2026-11-16 um 19.16.26.webp
Most blocking work is done via local checks thanks to the list of blocked countries and ASNs I build up over time.
 
Local country and ASN blocking are the way to go. I've blocked 155 countries but only 94 ASNs. There's also a new setting to permanently blacklist blocked countries and ASNs rather than receiving a temporary block that expires.

I have everything set to "first visit" and at one point in the past exceeded proxycheck's 1000 per day several times so went with the $4 per month plan that offers 10,000. Now it is rare to even get a couple hundred checks so I might go back to the free plan?

I have a small 6-month old low traffic site that averages 400 to 500 visitors per day but I've seen it hit 4000-5000 during swarms that thankfully we haven't had for a while.

Even though I am in the US, I have set all visitors from the US to be challenged. I've been very happy with IPTM keeping out undesireables and have even bumped up my online statistics time out to 60 minutes so it looks like somebody is home when members check in. Things have been great the last week or so but when it does get busy, I'll lower that timeout so members don't freak out with a lot of guests even though 85% of them don't get past the challenge.
 
is it just me thats seen a recent uplift in the numbers....?? (For clarity i have around 6k users, and before the chaos around 500 unique visitors a day). My proxycheck.io has gone from minimal to exceeding 40k queries a day, with no changes being made (i was on hols!)
Updating to 1.1.7 and configuring the local MaxMind GeoLite2 (Country & ASN) database will solve this immediately. Local GeoIP filters and blocks scrapers, datacenter ASNs, and unwanted countries directly on your server without consuming any ProxyCheck API quota, which will drop your 40k daily queries back to normal levels.
 
While IP Threat Monitor works perfectly fine since the last updates and gives me ease of mind and an almost bot-free forum I recognized over the last days that once more occasinally some bots from blocked countries and ASNs slipped through. Few and, as it seemed, somewhat randomly, but still unexpectedly and clearly against the ruleset.

I could not find a reason directly, however, today I found the cause and it turned out to be rather an edge case than a bug (the more as I caused it myself). But it could be worth hedging by @Osman as the issue could pop up independently from my changes as well, even if only rarely.

What has happened?​


In the latest versions of IP Threat Manager the generic 403-block-message has been replaced by various dedicated ones, depending if a block was based on a blacklist, an ASN, the proxycheck API or a country block. I had edited the phrase for the older version a while ago and included a link to the login-page tho avoid that logged out forum members that live in or travel to a blocked country or get caught in error get stuck but rather are able to log in and use the forum. This had worked flawlessly and helped those forum members.

For the latest version I had not yet done this for the new messages but finally did this week after a forum member from a blocked country contacted me as he was stuck in the error message. Worked again flawlessly. But shortly after the slipping through of blocked bots started.

I found a helpful error in the server error log (to be precise: hundreds of them) that were related to IP Threat Manager and told me (unexpectedly in German) I should use a value of 255 characters or less.

Bildschirm­foto 2026-11-22 um 10.58.17.webp

Code:
XF\PrintableException: IP Threat Monitor: Bitte gib einen Wert mit 255 Zeichen oder weniger ein. src/XF/Mvc/Entity/Entity.php:1276
Generated by: Unknown account Nov 19, 2026 at 4:19 PM

#0 src/addons/XENTR/IPThreatMonitor/Repository/IPThreatLog.php(331): XF\Mvc\Entity\Entity->save()
#1 src/addons/XENTR/IPThreatMonitor/Service/RateLimiter.php(445): XENTR\IPThreatMonitor\Repository\IPThreatLog->blockIP('150.228.135.24', 300, 'Guest access fr...')
#2 src/addons/XENTR/IPThreatMonitor/Listener.php(175): XENTR\IPThreatMonitor\Service\RateLimiter->checkRateLimit()
#3 src/XF/Extension.php(86): XENTR\IPThreatMonitor\Listener::appPubStartEnd(Object(XF\Pub\App))
#4 src/XF/App.php(3382): XF\Extension->fire('app_pub_start_e...', Array, NULL)
#5 src/XF/Pub/App.php(255): XF\App->fire('app_pub_start_e...', Array)
#6 src/XF/App.php(2836): XF\Pub\App->start(true)
#7 src/XF.php(850): XF\App->run()
#8 index.php(23): XF::runApp('XF\\Pub\\App')
#9 {main}

Unfortunately I did not tell me where. :cool: But the stack trace pointed towards the 403 error messages of IP threat manager and luckily the IP related to the error was included.

Outcome​


By adding the link to the login page I had extended the phrase a bit, using more characters than the original message had. All the errors I checked affected IPs that belonged to a blocked ASN. Yet still by far not all IPs blocked by ASN-blocks slipped through but only some. The error that I see seems to exclusively affect the ASN message. It turned out that the cause for that seems to lie in the Name of the ASN. It is displayed in the 403-error message and expanded through a variable. If the name of the ASN is very long the message gets longer than 255 characters and then IP Threat Manager gets into an error state and lets the IP pass. This happens independently from if the IP is from a blocked country or part of the existing blacklist already.

Example slipped through ASNs name despite ASN and country are blocked:
Bildschirm­foto 2026-11-22 um 10.09.29.webp
Bildschirm­foto 2026-11-22 um 10.10.47.webp

Example: Country is blocked, yet some requests pass:
Bildschirm­foto 2026-11-22 um 10.01.36.webp

Example: IP let pass despite being in the blacklist:
Bildschirm­foto 2026-11-22 um 10.02.33.webp

While the issue in this case seems to be caused by my phrase extension it could also affect the stock configuration if only the name of the ASN is long enough. Also, in theory, it could be affect other phrases as well in theory (even when unedited) if variables can be of unlimited length.

Recommendations​

  • If the 255 character limit for the phrases could be extended this would be good.
  • Failure handling should be improved: Checking should not silently die when an error occurs and (as in my cases) the IP would have blocked by a country rule or the blacklist rule well. Skipping the rule where an error occurs may be fine, but checking through the ruleset should continue.
  • Catching and handling this specific error would probably be a good idea: While I love the expansion of the ASN name in the error message possibly a check if the message with the expanded ASN-name is more than the character limit and if it is cutting the ASN name accordingly would possibly be a good idea.
  • Also, a somewhat clearer error message in the log and/or a hint for existing errors in the IP Threat Manager Dashboard would be helpful.

Migitating the error​


I had written the phrases a bit more detailed, not being aware of the 255 character limitation. I've now cut the lenght of the phrase drastically so the probablity for the error should now be massively lower. If anyone has edited the 403-phrases and especially the ASN phrases as well you probably should care to shorten it within reason.
 
been doing a bit of digging with AI as still having issues, so please excuse the below feedback from it...

In version 1.1.7, Moderate VPN mode still invokes first-visit reputation evaluation when country/ASN lists are populated. isVpnOrProxy() requests detection data, and getNetworkData() calls ProxyCheck even when local GeoLite2 Country and ASN information is available. The external cache lasts only 60–1,800 seconds, and the first-visit method doesn't implement the 24-hour caching described in its comment.

Could the local country/ASN policy evaluation be separated from the VPN API lookup, and could repeated/concurrent lookups be reduced?
 
Osman updated [XTR] IP Threat Monitor with a new update entry:

1.1.8

With this update, key improvements have been introduced to make managing forum security easier, provide an uninterrupted experience for members, preserve external service usage, and streamline daily administrator tasks.

Group-based flexibility has been added to allow trusted members and specific user groups (such as VIP or supporting members) to use VPN or proxy connections without being caught by security restrictions. Even when general VPN blocking is active, members belonging to your...

Read the rest of this update entry...
 
@smallwheels, I've always had a couple a day that were both country and ASN blocked sneak through as active. India was the most common but the last day or two, Bangladesh seems to be the winner. When I see their country flag in the active list, they get manually blacklisted. I've had 3 today. One of the benefits of a tiny low traffic site is they are easy to spot.

I'm also seeing some Bingbots show up active as guests
1795479354862.webp1795479393416.webp
I consider this very minor and probably more of a cosmetic hiccup than anything. I am very happy with the way IPTM is working.

I'm going to give 1.1.8 a few days before saying anything else.

I do have a couple questions though:
  • What are some other dynamic routes beside search and whats-new? Tags? Reactions? (I do not care about SEO)
  • Block Hosting Connections setting
    • Looking at proxycheck, all VPN users show a datacenter. Popular ones like Alibaba and Tencent are ASN blocked and from what I can tell none of the VPN users are traffic I want. If I enable the block hosting settings, is this a blacklist or temporary block and will the reason be listed as a blocked hosting connection? Can I assume registered members will be protected from the block?
I also have one curiosity about the different entry styles between the blocked ASN list and the blocked country lists. They each require one entry per line but the ASN list can be copied and pasted or multiples pasted into it and the country list cannot. Import and export options for these lists might be handy. I keep a master list of both country and ASNs in a spreadsheet and sometimes add several ASNs per day. Just pasting in the new ones at the bottom of the list sure is easy and it is really great now that both lists are alpha/numeric. Having the country list work different than the ASN list seems inconsistent but there must be a reason? The ability to even do this at all fantastic so it isn't a complaint, just a curiosity.

Thank you for all the ongoing improvements to IPTM. Such attention and responsiveness is unprecedented and highly appreciated (y)

Let's hope that 2.3.14 doesn't mess things up?
 
Hi @Elisabeth_K,

First of all, thank you so much for this fantastic and thoughtful feedback! You have a wonderful eye for detail, and questions like these truly help make IPTM better for everyone.

Let me walk you through everything you mentioned:

1. The Bingbot showing as Active:Good news: what you are seeing in your screenshot is actually IPTM doing its job exactly as designed! That IP (40.77.177.6) is indeed a verified Microsoft Bingbot crawler. IPTM actively verifies legitimate search engines via IP ranges and reverse DNS so they are kept Active and never challenged or blocked. If IPTM blocked them, your forum would drop out of search engine rankings. Modern search engines now use headless browsers to inspect PWA/service-worker assets (like /sw/cache.json), which is why you see that URL. So rest assured, it’s not a hiccup at all—your SEO is safe and sound!

2. Blocked countries (India/Bangladesh) occasionally showing as active:In previous versions (prior to 1.1.8), if a visitor from a blocked country had an unusually long network provider name or sent malformed browser characters, the database save during the blocking process could run into a constraint error, leaving the entry in an "active" state. In version 1.1.8, we completely decoupled local country evaluations directly at the door and hardened data sanitization. Those sneaky visits should now be stopped dead in their tracks before ever showing as active. Just double check that the two-letter ISO codes (IN and BD) are saved in your list.

3. Additional Dynamic Routes to protect:Since you mentioned you don't care about guest SEO, you have plenty of great options! Aside from search and whats-new, bots love crawling and burning resources on:
  • tags (tag indexes are heavily scraped)
  • members (stops bots from harvesting user profiles)
  • find-threads
  • misc/style-variation (as Chris D recently revealed in XF 2.3.14 notes, bots hammer style variation links millions of times a week!)
  • posts/reactions
You can simply add these route prefixes into the Dynamic Protected Routes box, one per line.

4. Block Hosting Connections:
  • Is it temporary or permanent? It is a temporary block (based on your configured ban duration, e.g., 5 to 15 minutes) rather than a permanent blacklist.
  • Is the reason clear? Yes, both the user and your threat log will see the specific reason: "Hosting / Datacenter connection detected".
  • Are registered members safe? Absolutely. With version 1.1.8, registered members (via member protection), staff, and any custom user groups you designate in the new exemption settings are completely immune to VPN/hosting blocks. Your real users won't get locked out.
5. ASN textarea vs Country list (Bulk copy/paste):You hit the nail on the head! The ASN option was built using a multi-line textarea, which makes copying and pasting entire columns from a spreadsheet effortless. The country option, on the other hand, was built using XenForo's dynamic row-adder interface, which requires adding rows individually.Your observation makes total sense. I've already made a note of this for the next update to allow bulk pasting / textarea input for countries too, so you can paste your master list just as easily as ASNs!

6. XenForo 2.3.14:Don't worry at all—2.3.14 won't break things. In fact, Chris D’s announcement confirms everything we've been working on: XenForo is optimizing the inside of the forum, while IPTM stands guard at the front door. Together, they will make your site faster and more resilient than ever.
 
Thank you @Osman. Working with you is truly a treat. Thank you for the explanations and quick response.

1. The Bingbot showing as Active:Good news: what you are seeing in your screenshot is actually IPTM doing its job exactly as designed!
I've pretty much got the Bing range of address memorized as well as their 8075 ASN. My point was they sometimes show up in the IPTM active IP list as guests, not Bingbots, even though I know they are.

It's not a big deal. From the forum current visitors, I can't say I've seen a Bing address show up as a guest so it's just a cosmetic problem. Things happen. :)

I do have another question that I just came across. I was browsing through the XF manual under the cache section... it says I can enable ACPu caching in the config.php file. IPTM is using ACPu and since I don't know really how this works, would it cause problems in IPTM when it is busy if was enabled for the whole forum? LOL, I probably shouldn't mess with things I don't understand.

Okay, one more while I'm at it - what is "Load Distribution" and how does it work? Even on those odd peak days where I've had 10X times the normal traffic (4 -5,000 visitors) it always says low, which seems like a good thing. I was just curious how load it determined.

Thanks!
 
I've pretty much got the Bing range of address memorized as well as their 8075 ASN. My point was they sometimes show up in the IPTM active IP list as guests, not Bingbots, even though I know they are.
Just to be sure: AS8075 is the whole of Microsoft including Azure. Therefor requests from this ASN are not necessarily from Bing but can also be from a scanner or scraper hosed on Azure (not uncommon).
I had some issues with Bing being sometimes recognized as normal guest only as well in earlier versions of IPTM these seem to be solved since a couple of versions back as far as I'm aware - will check if I still have issues.

I do have another question that I just came across. I was browsing through the XF manual under the cache section... it says I can enable ACPu caching in the config.php file. IPTM is using ACPu and since I don't know really how this works, would it cause problems in IPTM when it is busy if was enabled for the whole forum? LOL, I probably shouldn't mess with things I don't understand.
Maybe. ;-) If you have a caching mechanism that you can use and have configured IPTM can (and will) make use of it as well. This won't harm but rather create speed benefits.
 
Okay, one more while I'm at it - what is "Load Distribution" and how does it work? Even on those odd peak days where I've had 10X times the normal traffic (4 -5,000 visitors) it always says low, which seems like a good thing. I was just curious how load it determined.
As far as I understand it this reflects the rate limiter (which initially was the main feature of IPTS). In practice on my forum the rate limiter has been barely ever hit, partly as the scrapers have switched to using a single IP for a single request/page load only and then switching to another one. So it is nomal that this indicator is low / green constantly with very few exceptions.

I did have a hit to the limiter a couple of days ago when a forum member let his AI answer his forum posts, but this was an exeption. The other exception is when a scraper requests a lot of pages in very short amount of time (which was common until like last year but has become a rarity these days). The third variant on my forum was when visitors were requesting a non existent favicon URL for apple devices frequently - I still have a configuration issue with these highres apple favicons - and ended up hitting the rate limiter as false positives.
 
Back
Top Bottom