Email or username:

Password:

Forgot your password?
Siguza

People are currently dunking on this post that complains about Mastodon link previews DDoSing their servers - and they deserve every bit of it.

Pulling up this site in a browser with no privacy/sanity plugins installed, it made a total of 3740 requests within 4 minutes, which amounted to 267.22 MB transferred. It has ads left, right, bottom and center, and it has one of those annoying autoplaying videos, which ALSO has a video ad in front of it. The website would not scroll even close to fluently, and I'm doing this on a 24-core M2 Ultra Mac Studio with 128 GB RAM. I had to use the `debugger` command in the JS console in order to make the network panel in dev tools stop lagging.

In addition, they quote someone complaining about 114.7 MB being requested from their server over the span of 5 minutes. Not only is that less than half as much as you make a single user download if they don't actively cut into your bloatware crap, it also amounts to a whopping 3.06 Mbit/s that you're complaining about. THREE MEGABITS PER SECOND!

Your website is an insult to the internet.

news.itsfoss.com/mastodon-link

67 comments
Chris Partridge

@siguza it me I was complaining

But in my defense my entire homepage is 64KB on the wire :)

Siguza

@tweedge okay, your website is fine then. ๐Ÿ˜…
I still think a couple hundred MB within 5 minutes should be doable even for the lowest-spec servers, but clearly they're using this in an attempt to argue how this represents an unreasonable load on an enterprise-grade website behind Cloudflare CDN, so... y'know.

Chris Partridge

@siguza Oh yeah 100%. A Raspberry Pi running my website off a *Viasat residential connection* would've had enough CPU and upload bandwidth to handle this. ๐Ÿ˜…

If normal (i.e. not used as an amplification vector) Mastodon link previews can knock over your site, imagine what a motivated kid with Discord, their first bootable Kali USB, and a dream could do... I don't agree with Eugen's philosophy of why link previews need to be generated the way they are but it's the least of many, many evils!

Forbearance

@siguza @tweedge I think it's more that there's a bunch of incoming requests all at like the exact same time, as soon as the toot goes out, not the size of anything. Modern web sites are big babies and can't deal with that kind of pressure. Maybe each request needs a process and each process needs a V8 and then each V8 needs a database connection and

Matt ร— ๐Ÿ‡ณ๐Ÿ‡ด ๐Ÿ‡บ๐Ÿ‡ฆ

@tweedge @siguza I was also complaining that it does the same on my website, which serves up just 1.79 MB over 11 requests and no external requests.

Sure, my hosting package is a bit shit - it's enough to work 99.9% of the time - but apparently not when generating a link preview from Mastodon.

Still, perfectly valid points made about the It's FOSS page being full of crap. ๐Ÿ˜…

A screenshot of the network requests for coxy.co and it shows 11 requests, all the same server, and 1.79mb transferred in 732ms.
njsg

@tweedge @siguza NoScript: 743 KB (849 KB uncompressed). Without NoScript: yes, a few minutes with *no interaction* and it's above 30 MB (compressed, gets above 100 MB uncompressed).

What the... I'm actually surprised they don't get DDoSed by people reading their site in javascript-enabled browsers.

But, given this excellent website quality, maybe they just don't have enough readers for that to be a problem?

Nicolรกs Alvarez

@siguza "It's causing us trouble despite using Cloudflare" they have max-age=0 so Cloudflare isn't caching anything :|

Nicolรกs Alvarez

@siguza hackernews is roasting them hard too, apparently the site also went down from the "HN effect"

__Miguel_

@nicolas17 Can you link me to that, please? This is something I'd like to read about.

__Miguel_

@nicolas17 @siguza I was wondering if something like that could be the case...

I have read about people not configuring their CDNs properly which leads to the CDN not doing what it should do, i.e., deal with the increased load.

Though to be fair, that case was a case of "oops, I excluded tiny files from being cached, and my site is 100% tiny files", not a "we dump 200MB+ onto each client each time they request a page from us" thing.

Also, dear LORD, I thank thee for my adblockers, that's an insane amount of data to dump on each request.

@nicolas17 @siguza I was wondering if something like that could be the case...

I have read about people not configuring their CDNs properly which leads to the CDN not doing what it should do, i.e., deal with the increased load.

Though to be fair, that case was a case of "oops, I excluded tiny files from being cached, and my site is 100% tiny files", not a "we dump 200MB+ onto each client each time they request a page from us" thing.

Siguza

JESUS FUCKING CHRIST

Screenshot of the section of the website between the title and the beginning of the text. It's a photo of Richard Stallman that is definitely not in square aspect ratio but being squished into a square format, so his face is all stretched like that boy from Charlie and the Chocolate Factory. The image is also photoshopped to give him a Jesus-like halo, but it's just an orange circle like in those old paintings from when people didn't have any painting skills. It's on green background with white text saying "richard stallman" in lowercase. There's also overlay text saying "Only a true Stallman Fan Can Score ๐Ÿ† 100% ๐Ÿ†โ€‹" as if that were a good thing. There's some junk at the top that is presumably supposed to look like Instagram UI elements or smth? I can only assume this is what "Insta story" refers to, as I've never been on that hellsite. There's a green button labeled "START QUIZ" near the bottom. And of course there's an ad below it.
Rose

@siguza ๐Ÿ’€so we figured out the quiz is sponsored by system4 flagship store but what explains what their absolute stupidity is sponsored by?

This is the most ridiculous thing I've ever read... their so called DDoS attacks can simply be fixed by providing a botlist to block bot requests from if they want to go extreme or at least cull it. Rather than make up a childish blog post that pretends it's mastodon's fault for sending the request. I don't notice any other site complaining ๐Ÿ˜ญ

Vertigo #$FF

@siguza Uhh, no, actually, I like to call this Jesus GNU/Fucking Christ, or as I like to call it, Jesus GNU plus fucking Christ...

Terra Field

@siguza really looking forward to the future nightmare I will have about this, thanks.

๐Ÿšฒ

@siguza โ€œtrue rms fanโ€ probably wouldnโ€™t use instagram lol

Sabella

@siguza that's a YIKES from me, as a card-carrying Linux legbeard.

Kirsty

@siguza
I wonder if this may be why @Teri_Kanefield has problems after linking published blogs/opedsโ€ฆ? iirc
news.itsfoss.com/mastodon-link
@Gargron cc

DELETED

@siguza a much bigger prefetch DOS issue is recent changes to gmail and yahoo mail that prefetch urls in emails in new alleged anti-spam measures.

This has made life for email marketeers, and those who look after their servers, very interesting over the past month or soโ€ฆ

Wilfried Klaebe

@gorsefan I have no fucks to give for e-mail marketers.

@siguza

Hugo ้›จๆžœ

@siguza It would probably help if they configured caching headers properly; currently responses include 'cache-control: public, max-age=0'. This negates the value of any CDN.

DELETED

@siguza but until Google finally phase out 3rd party cookies, and the GDPR and similar legislation is the US bites more, the traffic you rightly moan about is mainly third party - so a lower cost of doing business and less impactful than first party.

Itโ€™s all competing against itself for scant user resources and self-defeating, as well as terrible for the user and the planet, but companies are loathe to put a performance budget on async requests with clear bottom line benefits.

Sikata

@siguza I'mma be honest, this also kind of sounds like ad click fraud. Why would it make so many requests in 4 minutes?

DELETED

@siguza ItsFOSS cares about your privacy, which is why weโ€™d like you to take a moment to review our sharing of your data with our 1424 partnersโ€ฆ..

cookie consent screen with 1424 partners on news.itsfoss.com
__Miguel_

@soafen Good grief, just a couple of weeks ago I encountered 700+ and thought it was too much, then 830+ a week later, and just a couple of days ago 1200+, which already blew my mind.

1400+ is just... WOW...

They DO say the web these days is virtually impossible to navigate without privacy-protecting measures...

On that note, I'll leave this here, thanks to @ShadowJonathan who brought it to my attention: consentomatic.au.dk/

DELETED

@nanianmichaels yea it's kinda ridiculous lol

i will mention that uBlock origin can also take care of these popups if you want to reject all personalised ads

__Miguel_

@soafen Oh, yeah, that extension is something to be used ON TOP of uBlock Origin, since it doesn't block ads, it just deals with automating the GDPR/cookie consent forms.

I don't think I would be able to even be online without uBlock Origin doing the heavy lifting of filtering out ads. My 1Gbps connection would grind to a halt in no time flat, and my spoon drawer would instantly be thrown out of the window with THAT amount of distractions being sent my way O_o

DELETED

@nanianmichaels the web really isn't usable without an ad blocker anymore yea :p

uBlock Origin is way more than an ad-blocker however, it's pretty much a swiss army knife of extensions - try dive into its settings sometime and you'll see what i mean

__Miguel_

@soafen Ooooh, I swear a lot of those options weren't there when I first started using the extension!

Just enabled a *few* more things, let's see how it goes O:)

Elrick_Winter

@nanianmichaels @soafen I agree that ads are a problem on the modern internet. May i ask you to point to a solution that you recommend? I know that this is rude to ask, but i tried to look it up and found only untrustworthy or problematic extensions etc..

Lyude๐ŸŒน#BLM

@soafen @nanianmichaels I have a real screenshot somewhere of a website asking me to share information with its 1492 partners by accepting cookies
It said, verbatim, 1492 partners

DELETED

@Lyude yeah, i even think i saw one with over 2 thousand. it's not even funny

Michelle Hughes

@soafen @siguza

What is that "Legitimate Interest" link? It's seems suspicious that they have to specify that some part of their site is legitimate.

Alfred R. Baudisch

@siguza I disabled uBlock for 3 minutes and this is what I got from that same article:

3500 requests
189,51 MB / 16,34 MB transferred
Finish: 2,74 min

Insanity.

ignore all previous instructions. ๐Ÿณ๏ธโ€โšง๏ธ๐Ÿณ๏ธโ€๐ŸŒˆ๐Ÿ‰

@siguza or in other words, please DONT link to to itsfoss- not because it ddoses them, just because their website is full of fucking shit- both figuratively and in terms of design.

Page Asgardius

@siguza A month ago somebody at Google used brute force to guess my notification system password and used it to send spam to google users, but their attenpt failed because their own antispam system. They used a bot to try to takedown my mail server. People that reads my blog didn't notice this ddos attack because my wordpress site uses a minimalistic aproach, so it has less than 3 plugins. They wanted a new google workspace user, but they failed and tutamail has more users than before

Paul Wilde :blobcatnim: :dontpanic_nobg:

@siguza They're using a cache=bust querystring and a max-age=0 cache control... basically, what they're moaning about is entirely their own fault.

@itsfoss

SEGFAULT

@siguza if your server can't handle 3740 requests over a 5 minute window (less than 1000req/min) from a web crawler that's not even hitting all the assets there's something wrong with your server, site, or both.

@itsfoss woman up!

Aeon.Cypher

@siguza
It takes about 15 minutes to configure your system to handle the HTTP requests intelligently.

DELETED

@siguza damn! I've never heard of this site before, but damn they must hate people or something to inflict this on us.

Chris Adams

@siguza @jcrabapple yeah, that waterfall is ๐Ÿคฏ

webpagetest.org/result/240502_

I especially like using Cloudflare, disabling Cloudflareโ€™s caching, and then complaining.

Mastodon does have some architectural efficiency issues but this is like buying an F-250 for an office commute and complaining when gas prices go up.

Site Reliability Enby๐Ÿณ๏ธโ€โšง๏ธ๐Ÿ๐Ÿ”ฆ๐Ÿ“ˆ๐Ÿบ๐Ÿ‘—

@siguza So fucking true.

I have a very image-heavy website (with zero tracking/ads) that I post on fedi from time to time, and I've never seen any dent in performance metrics from doing so, and while my account following may be smaller than theirs, there are still a lot of single-user instances, and to actually knock out my site just from requesting a page, I can't even imagine, which also happens to be running on a t4g.small and the only time it's ever been down was when I managed to screw up my letsencrypt autorenewal...

@siguza So fucking true.

I have a very image-heavy website (with zero tracking/ads) that I post on fedi from time to time, and I've never seen any dent in performance metrics from doing so, and while my account following may be smaller than theirs, there are still a lot of single-user instances, and to actually knock out my site just from requesting a page, I can't even imagine, which also happens to be running on a t4g.small and the only time it's ever been down was when I managed to screw up my...

Orca๐ŸŒป | ๐Ÿด๐Ÿณ๏ธโ€โšง๏ธ

@siguza@infosec.space Is most of these 267.22 MB even transferred from this website's server or an ad company's server? โ€‹:neocat_confused:โ€‹

Dushman

@siguza@infosec.space
They can show you a bajillion ads but 114mb of tx is too much โ€‹:laugh_about_it:โ€‹
We have other services that often get linked on fedi and this never resulted in even a second of downtime.

Cysio :verified_gay:โ€‹

@siguza they're complaining that Cloudflare doesn't help, but if their website is not cacheable Cloudflare ain't gonna do shit

Boufty

@siguza It would take the full might of my internet connection 9 full minutes to load this 267MB webpage but sure there's nothing wrong with how we make websites and applications today ๐Ÿคง

Acin on .art

@siguza I'd like to ask you something because you seem to understand this process.

Neocities sites that are linked from Mastodon accumulate an unbelievable number of views per the default hit counter. Are link previews doing this?

Like, if my new and small site that barely anyone knows exists shows 40,000 unique views, is that because a few link previews count as thousands of views each?

Slatian

@siguza Just checked and โ€ฆ having the site open alone causes more requests than what I like to call the Fedi-Hammer on my little site (which I notice in my request statistics, but not on server resources) โ€ฆ

For context: A typical load of my site is 100KB with a cold cache and the html is 10 to 20KB โ€ฆ including a decorative banner image.

Also if one has a >1MB preview image >1000px wide โ€ฆ apology denied.

Mathias, a walf โ„๏ธ๐Ÿบ :pansexual_flag:

@siguza That's not to mention it's loaded with broken scripts that are causing 400s and 403s loading external resources, at least one redirect loop, and so much more. They seem to have at least four ad exchange providers *just from the ones erroring out*. Some Google ad thing is going absolutely nuts.

This really is an unusable abomination. They should be ashamed of it. Even if they had or have a legit problem with thundering herds (which they can solve), there's no excuse for what they are.

Stefan H.

@siguza Wait I thought those 114 MB of traffic they talked about was the total mastodon OG image network traffic sent to all mastodon instances. They send 114MB PER REQUEST???? And these guys send 267MB for each page load???

Am I understanding this correctly?

Go Up