Crazy amount of guests

The IP's you screenshotted 104.28.224.94, 104.29.254.237 and 104.28.193.96 are from Cloudflare WARP though.
Ah, yes indeed.
Bildschirm­foto 2026-11-30 um 16.52.05.webp

This means indeed that CF Warp is not trustable as a VPN. Until now I had given it a free ride - possibly time to change that and CF should care what and whome they are serving. Still curious to know if they are filtering the connections they establish themselves and protect their server clients from it.

Your screenshot showed 10 devices.
This is the guessing by Proxycheck. What they do is do book packages with various providers of resident proxies and this way determine the IPs they get offered. Somehow they guess how many proxy-users share a specific IP.
 
Could you post a sample or full output from your server logs? Primarily with the application of some privacy-preserving items (e.g. domain name, user names, etc.). How you describe feels between an AI-scraper botnet flood and a DoS-like GET random ID flood.
Happy to share a sanitised sample. In one minute, Apache logged 2,255 requests to /threads/<slug>.<thread_id>/post-<post_id> from 2,248 distinct logged IPs. No IP made more than two requests to that route in that minute, and 2,049 of the requests returned redirects.

The requests were spread across many threads and post IDs. I tested one of the redirects directly and XenForo sent it to the same post in a different thread. I haven’t checked enough IDs to say whether most requests target existing posts, follow old links, or probe IDs. I’ll share a sample with the IPs and IDs replaced by consistent labels so you can see the pattern.

Code:
:0 client-0001 GET /threads/thread-0001/post-0001 HTTP 301
:0 client-0002 GET /threads/thread-0002/post-0002 HTTP 301
:0 client-0003 GET /threads/thread-0003/post-0003 HTTP 301
:0 client-0004 GET /threads/thread-0004/post-0004 HTTP 301
:0 client-0005 GET /threads/thread-0005/post-0005 HTTP 301
:0 client-0006 GET /threads/thread-0006/post-0006 HTTP 301
:0 client-0007 GET /threads/thread-0007/post-0007 HTTP 301
:0 client-0008 GET /threads/thread-0008/post-0008 HTTP 301
:0 client-0009 GET /threads/thread-0009/post-0009 HTTP 301
:0 client-0010 GET /threads/thread-0010/post-0010 HTTP 301
:0 client-0011 GET /threads/thread-0011/post-0011 HTTP 301
:0 client-0012 GET /threads/thread-0012/post-0012 HTTP 301
:0 client-0013 GET /threads/thread-0001/post-0013 HTTP 403
:0 client-0014 GET /threads/thread-0012/post-0014 HTTP 301
:0 client-0015 GET /threads/thread-0013/post-0015 HTTP 301
:0 client-0016 GET /threads/thread-0014/post-0016 HTTP 301
:0 client-0017 GET /threads/thread-0015/post-0017 HTTP 301
:0 client-0018 GET /threads/thread-0016/post-0018 HTTP 403
:0 client-0019 GET /threads/thread-0017/post-0019 HTTP 301
:0 client-0020 GET /threads/thread-0006/post-0020 HTTP 301
:0 client-0021 GET /threads/thread-0018/post-0021 HTTP 301
:0 client-0022 GET /threads/thread-0019/post-0022 HTTP 404
:0 client-0023 GET /threads/thread-0009/post-0023 HTTP 301
:0 client-0024 GET /threads/thread-0020/post-0024 HTTP 301
:0 client-0025 GET /threads/thread-0002/post-0025 HTTP 303
:0 client-0026 GET /threads/thread-0021/post-0026 HTTP 301
:0 client-0027 GET /threads/thread-0022/post-0027 HTTP 301
:0 client-0028 GET /threads/thread-0023/post-0028 HTTP 303
:0 client-0029 GET /threads/thread-0024/post-0029 HTTP 403
:0 client-0030 GET /threads/thread-0002/post-0030 HTTP 301
 
Happy to share a sanitised sample. In one minute, Apache logged 2,255 requests to /threads/<slug>.<thread_id>/post-<post_id> from 2,248 distinct logged IPs. No IP made more than two requests to that route in that minute, and 2,049 of the requests returned redirects.

The requests were spread across many threads and post IDs. I tested one of the redirects directly and XenForo sent it to the same post in a different thread. I haven’t checked enough IDs to say whether most requests target existing posts, follow old links, or probe IDs. I’ll share a sample with the IPs and IDs replaced by consistent labels so you can see the pattern.

Code:
:0 client-0001 GET /threads/thread-0001/post-0001 HTTP 301
:0 client-0002 GET /threads/thread-0002/post-0002 HTTP 301
:0 client-0003 GET /threads/thread-0003/post-0003 HTTP 301
:0 client-0004 GET /threads/thread-0004/post-0004 HTTP 301
:0 client-0005 GET /threads/thread-0005/post-0005 HTTP 301
:0 client-0006 GET /threads/thread-0006/post-0006 HTTP 301
:0 client-0007 GET /threads/thread-0007/post-0007 HTTP 301
:0 client-0008 GET /threads/thread-0008/post-0008 HTTP 301
:0 client-0009 GET /threads/thread-0009/post-0009 HTTP 301
:0 client-0010 GET /threads/thread-0010/post-0010 HTTP 301
:0 client-0011 GET /threads/thread-0011/post-0011 HTTP 301
:0 client-0012 GET /threads/thread-0012/post-0012 HTTP 301
:0 client-0013 GET /threads/thread-0001/post-0013 HTTP 403
:0 client-0014 GET /threads/thread-0012/post-0014 HTTP 301
:0 client-0015 GET /threads/thread-0013/post-0015 HTTP 301
:0 client-0016 GET /threads/thread-0014/post-0016 HTTP 301
:0 client-0017 GET /threads/thread-0015/post-0017 HTTP 301
:0 client-0018 GET /threads/thread-0016/post-0018 HTTP 403
:0 client-0019 GET /threads/thread-0017/post-0019 HTTP 301
:0 client-0020 GET /threads/thread-0006/post-0020 HTTP 301
:0 client-0021 GET /threads/thread-0018/post-0021 HTTP 301
:0 client-0022 GET /threads/thread-0019/post-0022 HTTP 404
:0 client-0023 GET /threads/thread-0009/post-0023 HTTP 301
:0 client-0024 GET /threads/thread-0020/post-0024 HTTP 301
:0 client-0025 GET /threads/thread-0002/post-0025 HTTP 303
:0 client-0026 GET /threads/thread-0021/post-0026 HTTP 301
:0 client-0027 GET /threads/thread-0022/post-0027 HTTP 301
:0 client-0028 GET /threads/thread-0023/post-0028 HTTP 303
:0 client-0029 GET /threads/thread-0024/post-0029 HTTP 403
:0 client-0030 GET /threads/thread-0002/post-0030 HTTP 301
Were these accesses effectively all in numerical order? If so, we're actually seeing an evolution of these scrapers at this point targeting forums.


I don't know your server HTTP daemon, but if it is nginx:

As a bandaid (shouldn't even consider this a short or long-term fix), you could setup many nginx fake locations based on random thread IDs in the low ranges. Primarily with thread IDs that do not exist and make those effectively honeypot thread IDs return error 444. Let a log scanner monitor the log files for error 444, then slam the doors shut on them at the server via IPTables or whatever you fancy.

As an alternative, you could make XenForo 2 throw error 444 on non-existing thread IDs via an addon... but that's a blanket approach and will likely get legitimate users poking about or mistyping thread IDs ending up blocked. :)
 
  • Like
Reactions: Maa
I got a very interesting result in the last 24hrs, did an analysis on logs for the last 20+ days (been lazy grabbing them), updated my rules based on the last 30 days of logs (added older ones out to 30 days, everything past that is useless to me), changed my rule #2 BLOCK of all the cf.client.bot that I don't want + I added in all the fake pretenders to it, and that just cut my last 24hrs of browser impersonators managed challenge rule in half. Rule #2 barely changed. The pretenders that were solving my managed challenge are now being caught in the block it seems, and stopped near immediately. Before and after results below.

Code:
(cf.client.bot)
or (ip.src.asnum in {150436 40021 4229 132203 136907 45090 45102 21769 14061 398781 396319})
or (ip.src.country in {"CN"})
or (any(http.request.headers["sec-fetch-site"][*] == "same-site") and http.referer eq "" and not http.cookie contains "xf_user=")

or (not cf.client.bot and (
    lower(http.user_agent) contains "googlebot"
    or lower(http.user_agent) contains "googleother"
    or lower(http.user_agent) contains "google-inspectiontool"
    or lower(http.user_agent) contains "adsbot-google"
    or lower(http.user_agent) contains "mediapartners-google"
    or lower(http.user_agent) contains "bingbot"
    or lower(http.user_agent) contains "bingpreview"
    or lower(http.user_agent) contains "msnbot"
    or lower(http.user_agent) contains "applebot"
    or lower(http.user_agent) contains "duckduckbot"
    or lower(http.user_agent) contains "yandex"
    or lower(http.user_agent) contains "baiduspider"
    or lower(http.user_agent) contains "slurp"
    or lower(http.user_agent) contains "gptbot"
    or lower(http.user_agent) contains "oai-searchbot"
    or lower(http.user_agent) contains "chatgpt-user"
    or lower(http.user_agent) contains "claudebot"
    or lower(http.user_agent) contains "claude-searchbot"
    or lower(http.user_agent) contains "claude-user"
    or lower(http.user_agent) contains "anthropic"
    or lower(http.user_agent) contains "perplexity"
    or lower(http.user_agent) contains "amazonbot"
    or lower(http.user_agent) contains "bytespider"
    or lower(http.user_agent) contains "ccbot"
    or lower(http.user_agent) contains "facebookexternalhit"
    or lower(http.user_agent) contains "meta-externalagent"
    or lower(http.user_agent) contains "linkedinbot"
    or lower(http.user_agent) contains "twitterbot"
    or lower(http.user_agent) contains "pinterestbot"
))

or (http.user_agent eq "")
or lower(http.user_agent) contains "python-requests"
or lower(http.user_agent) contains "python-urllib"
or lower(http.user_agent) contains "aiohttp"
or lower(http.user_agent) contains "scrapy"
or lower(http.user_agent) contains "go-http-client"
or lower(http.user_agent) contains "curl/"
or lower(http.user_agent) contains "wget"
or lower(http.user_agent) contains "libwww-perl"
or lower(http.user_agent) contains "node-fetch"
or lower(http.user_agent) contains "axios"
or lower(http.user_agent) contains "headlesschrome"
or lower(http.user_agent) contains "phantomjs"

As such I could modify my #3 managed challenge slightly, dedupe things:

Code:
(
  (
    http.user_agent contains "Chrome/1"
    and not any(lower(http.request.headers.names[*])[*] == "sec-ch-ua")
  )
  or (
    http.user_agent contains "Mozilla/5.0"
    and (http.user_agent contains "Chrome/1" or http.user_agent contains "Firefox/1")
    and (
      not any(lower(http.request.headers.names[*])[*] == "sec-fetch-mode")
      or not any(lower(http.request.headers.names[*])[*] == "accept-language")
    )
  )
  or (
    http.user_agent contains "Mozilla/5.0"
    and http.user_agent contains "Version/"
    and http.user_agent contains "Safari/"
    and not http.user_agent contains "Chrome/"
    and not http.user_agent contains "Chromium/"
    and (
      not any(lower(http.request.headers.names[*])[*] == "sec-fetch-mode")
      or not any(lower(http.request.headers.names[*])[*] == "accept-language")
    )
  )
  or (
    (
      lower(http.user_agent) contains "bot"
      or lower(http.user_agent) contains "crawl"
      or lower(http.user_agent) contains "spider"
      or lower(http.user_agent) contains "scrap"
      or lower(http.user_agent) contains "python"
      or lower(http.user_agent) contains "curl/"
      or lower(http.user_agent) contains "wget"
      or lower(http.user_agent) contains "go-http"
      or lower(http.user_agent) contains "libwww"
      or lower(http.user_agent) contains "httpclient"
      or lower(http.user_agent) contains "axios"
      or lower(http.user_agent) contains "node-fetch"
      or lower(http.user_agent) contains "headlesschrome"
    )
    and not lower(http.user_agent) contains "telegrambot"
    and not lower(http.user_agent) contains "discordbot"
    and not lower(http.user_agent) contains "slackbot"
    and not lower(http.user_agent) contains "mojeekbot"
    and not lower(http.user_agent) contains "kagibot"
    and not lower(http.user_agent) contains "bravebot"
    and not lower(http.user_agent) contains "mistralai"
  )
  or (
    (
      http.user_agent contains "Chrome/99."
      or http.user_agent contains "Chrome/10"
      or http.user_agent contains "Chrome/11"
      or http.user_agent contains "Chrome/12"
      or http.user_agent contains "Chrome/13"
    )
    and not http.user_agent contains "Mobile"
    and not http.user_agent contains "Android"
  )
  or (
    http.user_agent contains "X11; Linux x86_64"
    and any(http.request.headers["sec-ch-ua"][*] contains "Chromium")
    and not any(http.request.headers["sec-ch-ua"][*] contains "Google Chrome")
    and not any(http.request.headers["sec-ch-ua"][*] contains "Brave")
    and not any(http.request.headers["sec-ch-ua"][*] contains "Edge")
    and not any(http.request.headers["sec-ch-ua"][*] contains "Opera")
  )
  or (
    any(http.request.headers["sec-fetch-site"][*] == "none")
    and http.referer ne ""
    and not http.referer contains "myptsd.com"
  )
)
and not http.cookie contains "xf_user="

Yesterday...

Screenshot 2026-11-30 123145.webp

Today...

Screenshot 2026-12-01 172440.webp
 
This could help anyone looking to allow a specific country, and block AI, SEO, or aggressive bots, scrapers, and more:

https://xenforo.com/community/resources/block-country.11079/

It's a great way to protect both your server's resources and forums.
While it's always nice to seeing additional tools for the arsenal, CC-level blocking should be a last-ditch effort. You could actually add a check-box option to that addon to "Inverse Match" the listed CCs. That way, you're only permitting certain countries in the list on to your community. ;)
 
CC-level blocking should be a last-ditch effort.
I'd rather say that mainly depends from where your users come from. While generally I'd agree that it is not desirable in today's times it is a pretty effective way to have less headache with bots if you can afford to block a wider range of CCs (and even more if that includes the US upon a bunch of other countries). You need however a way to let forum members that live in or travel to blocked countries pass and this add on does not seem to offer such an option.
 
I'd rather say that mainly depends from where your users come from. While generally I'd agree that it is not desirable in today's times it is a pretty effective way to have less headache with bots if you can afford to block a wider range of CCs (and even more if that includes the US upon a bunch of other countries). You need however a way to let forum members that live in or travel to blocked countries pass and this add on does not seem to offer such an option.
CC blocking is like applying a commercial fire suppression system to a small contained candle on the kitchen stove top. You're going to ruin the whole kitchen when the suppression system is activated... when all that was needed was a simple covering of the candle. 😁

Otherwise, I'm in general agreement with what you've stated. It goes without stating though: Country Code blocking can more often than not, have a high false positive rate. Many IPv4 spaces and allocations are being migrated to other countries. Many data sources aren't up to date on those items. IPv6 on the other hand, not so much for at least the next 100 years.
 
CC blocking is like applying a commercial fire suppression system to a small contained candle on the kitchen stove top. You're going to ruin the whole kitchen when the suppression system is activated... when all that was needed was a simple covering of the candle. 😁

Otherwise, I'm in general agreement with what you've stated. It goes without stating though: Country Code blocking can more often than not, have a high false positive rate. Many IPv4 spaces and allocations are being migrated to other countries. Many data sources aren't up to date on those items. IPv6 on the other hand, not so much for at least the next 100 years.

My experience is the opposite. On the several hobbyist forums I own, for over a decade not a single registered non-spam user came from China, Hong Kong, Singapore, Vietnam, India, Bangladesh, or Pakistan. Meanwhile, a huge amount of abuse came from those countries.

By blocking them, I had less spam and content theft without losing users or seeing a drop in visitor numbers.

Cloudflare has a high confidence level for country accuracy. They use Maxmind, the best in the business, as well as user-submitted corrections.

I'm not saying CC blocking is a solution for all sites, but it's worth considering for many niches.
 
CC blocking is like applying a commercial fire suppression system to a small contained candle on the kitchen stove top. You're going to ruin the whole kitchen when the suppression system is activated... when all that was needed was a simple covering of the candle. 😁
The analogy isn't so good. It's usually not a single candle that you need to put out, it's thousands of them, so going one after another isn't effective and you need a tool with broader action. Secondly, a room would be part of the house whether you're using that room or not; you can't just cut it off, so you have some responsibility to contain a fire before it burns down the whole house. A website isn't subject to the same constraints and implied obligations.

I read this argument a bit earlier in the thread, that it's weird to put a website on the internet and then start blocking it. Actually, a site (or any sort of service for that matter) is not put on the internet; it's put on a webhost's network. It's only because of the peering between all the networks that make up the internet will the website be theoretically accessible from any corner of the planet. However that might not be the intent and purpose of that website at all, and just because universal connectivity is possible, it doesn't become an obligation. A site admin is fully within their rights to decide how tightly to limit access and based on what criteria.
 
CC blocking is like applying a commercial fire suppression system to a small contained candle on the kitchen stove top. You're going to ruin the whole kitchen when the suppression system is activated... when all that was needed was a simple covering of the candle. 😁
Sadly, what used to be a small candle has become a huge fire through the bot waves. I agree with @puterfixer that your metaphor is not the best. Rather in the past scraperbots were the occasional fly in the kitchen that did not hurt and you could kill it easily using a fly flap. Now we have swarms over swarms of flies in the kitchen, no chance to get rid of them with a fly flap any more. So it seems adequate to lock doors and windows and put fly screens there. If you don't you are endangered to let your kitchen be ruined.
 
It maybe depends on the strategy - if no need for countries then block them I guess. But blocking most countries doesn't necessarily solve the problem - the bots just move to your country.

I have 15 blocked. That still leaves approx 180 countries my site is open to. Most of that 15 I would never have members from - a few of those countries I may have had an occasional member from - but not now. It's not about numbers of members, but in my topic some people from those blocked countries are the ones that most need information on the topic and have limited resources in their country. Not happy about it, but it's the way it is. There is always the option to use a vpn but I think most people wouldn't bother and just go and click on some other site instead.

Those blocked 15 helped cut the number of bots down to the point that other rules could manage the rest. But as residential proxies are from all over the world, blocking every country they are from is really closing the doors to membership. Unless a site is specifically just for one country eg.

It's hard to believe that four months ago my site was open to the entire world - no blocked countries, no blocked ASN's, no cloudflare rules - only 180 guests on average.

As for the fly analogy - sticky fly papers in the kitchen, while gross, work extremely well and better than swatting :-) But we can have layers - a brick wall, then screens which some get through and then sticky papers maybe.
 
Last edited:
Well yes :-) But the annoying thing is, if I unblocked those countries and let the flood out, and relied on the honeypot, it would probably stop working sooner rather than later. So just keeping things as they are for now.
 
Back
Top Bottom