Post by @jorijn

A graph showing the requests from NGINX, with a time scale of 24 hours.
A graph showing the requests from NGINX, with a time scale of 24 hours.
A graph showing the requests from NGINX, with a time scale of 7 days.
A graph showing the requests from NGINX, with a time scale of 7 days.
Aggregated logs from NGINX, parsing the URL, and showing the top ten most requested URLs.
Aggregated logs from NGINX, parsing the URL, and showing the top ten most requested URLs.

Another interesting adventure from the life of a #mastoadmin: "Where do all these requests come from?"

These spikes come and go on a fairly steady rhythm (each ~60 minutes). I found this to be interesting, so I investigated which URLs are being requested the most during these spikes.

Turns out: It's the emojis. I don't mind as they're being returned early by Varnish, but why so much? 2.5 million times per 24 hours seems like _a lot_.

Two red lines mark the Mastodon 4.5 upgrade.

Replying to @jorijn
A view from the logging, but seven days earlier. It's not showing the emojis at all.
A view from the logging, but seven days earlier. It's not showing the emojis at all.

Here's a view from seven days earlier. The emojis don't even rank in the top ten most requested URLs.

#mastoadmin

Replying to @jorijn

New data suggests it's a crawler by Tencent, and there is no relation to the latest 4.5 release. Will research a bit more later.

Replying to @jorijn
The attached chart shows traffic from the last 24 hours. All yellow spikes are recurring Tencent crawls.
The attached chart shows traffic from the last 24 hours. All yellow spikes are recurring Tencent crawls.

Update on the Tencent crawler situation:

Identified the fingerprint (Chrome/126 on Windows NT 6.1, always from AS132203/132591/45090) and deployed a #Crowdsec scenario to auto-ban them for 90 days.

Already blocked 100+ IPs within the first hour. They rotate constantly, but the fingerprint stays the same.

The attached chart shows traffic from the last 24 hours. All yellow spikes are recurring Tencent crawls.

#tencent #mastoadmin

Replying to @jorijn

The Tencent crawler pretends to be "Chrome 126 on Windows 7."

Chrome 126: released June 2024, Windows 7: lost Chrome support in February 2023.

This browser is impossible. Someone copied and pasted a User-Agent string and forgot Windows 7 has been dead for years.

Replying to @jorijn

Over 5,100 unique #tencent IPs triggered the ban within roughly 2-3 hours of this scenario going live. These guys don't mess around...

#mastoadmin #Crowdsec