News for hackers. Stuff that matters.
Re:A Facebook crawler was making 7M requests per day to my s... by lun4r on Thursday June 11, 2020 @01:32PM (#23491196)
We've had the same issue. They were doing huge bursts of tens of thousands of requests in very short time several times a day. The bots didn't identify as FB (used "spoofed" UAs) but were all coming from FB owned netblocks. I've contacted FB about it, but they couldn't figure out why this was happening and didn't solve the problem. I found out that there is an option in the FB Catalog manager that lets FB auto-remove items from the catalog when their destination page is gone. Disabling this option solved the issue.
Re:A Facebook crawler was making 7M requests per day to my s... by pera on Thursday June 11, 2020 @04:12PM (#23492886)
I just had an idea: if you control your own name server I believe you could use a BIND view to send all their own traffic to themselves based on the source address.

By the way, if someone discovers how to trigger this issue it would be easy to use it as a DOS pseudo-botnet.

Re:A Facebook crawler was making 7M requests per day to my s... by mszcz on Friday June 12, 2020 @03:47AM (#23497022)
I had a different idea. Maybe you could craft a zip-bomb response. The bot would fetch the small gzipped content and upon extraction discover it was GBs of data? Not sure that's possible here, when responding to a request, but that would surely turn the admins attention to it.
Re:A Facebook crawler was making 7M requests per day to my s... by Nextgrid on Friday June 12, 2020 @07:30AM (#23498188)
Here's an example of things you can do against malicious crawlers: http://www.hackerfactor.com/blog/index.php?/archives/762-Att....
Re:A Facebook crawler was making 7M requests per day to my s... by Jazgot on Tuesday June 23, 2020 @04:44PM (#23619994)
Thanks a lot! I've spent like 2h now reading his blog. Just amazing.
Re:A Facebook crawler was making 7M requests per day to my s... by touristtam on Friday June 12, 2020 @09:29AM (#23499010)
fascinating read. :)
Re:A Facebook crawler was making 7M requests per day to my s... by mszcz on Friday June 12, 2020 @03:24PM (#23502693)
It is!
Re:A Facebook crawler was making 7M requests per day to my s... by narrowtux on Friday June 12, 2020 @04:39AM (#23497278)
If their client asks for gzip compression of the http traffic, you could do it.
Re:A Facebook crawler was making 7M requests per day to my s... by gerdesj on Thursday June 11, 2020 @06:19PM (#23493868)
Nice idea, I like the thinking. I'll tuck that away for use later. PowerDNS has LUA built in amongst a few other things.

My stack of projects to do is growing at a hell of a rate and I'm not popping them off the stack fast enough.

Re:A Facebook crawler was making 7M requests per day to my s... by verdverm on Thursday June 11, 2020 @07:06PM (#23494152)
I know the feeling, it's one of the reasons I'm working on https://github.com/hofstadter-io/hof

Check out the code generation parts and modules, they are the most mature. We have HRDs (like CRDs in k8s for anything) and a scripting language between bash and Python coming out soon too.

Re:A Facebook crawler was making 7M requests per day to my s... by gerdesj on Thursday June 11, 2020 @07:48PM (#23494426)
I've tried to work out what your project does but I'm none the wiser. GEB is prominent on my bookshelf. I'm a syadmin and I got as far as "hollow wold" in Go or was it "Hail Marrow"? Can't remember.

I've checked out your repo for a look over tomorrow when I'm cough sober!

Re:A Facebook crawler was making 7M requests per day to my s... by verdverm on Thursday June 11, 2020 @07:52PM (#23494450)
Stop by gitter and I'd be happy to explain more
Re:A Facebook crawler was making 7M requests per day to my s... by gorgoiler on Thursday June 11, 2020 @10:56PM (#23495542)
Something about this idea sits uncomfortably with me. I also just had an idea / thought experiment based on your idea.

We think of net neutrality as being for carriers and ISPs, but you could see it applied to a publicly accessible DNS service too. These DNS service providers are just as much part of the core service of the Internet as anyone else. It’s not a huge leap to require that those who operate a publicly accessible DNS service are bound by the same spirit of the regulations: that the infrastructure must not discriminate based on who is using it.

It’s different to operating a discriminatory firewall. DNS is a cacheable public service with bad consequences if poisonous data ends up in the system. Fiddling with DNS like this doesn’t seem like a good idea. Too much weird and bad stuff could go wrong.

Another analogy would be to the use of encryption on amateur radio. It seems like an innocuously good idea, but the radio waves were held open in public trust for public use. If you let them be used for a different (though arguably a more useful purpose) then the resource ends up being degraded.

Also along these lines of thought [begin irony mode]: FCC fines for DNS wildcard abuse / usage.

Re:A Facebook crawler was making 7M requests per day to my s... by inopinatus on Friday June 12, 2020 @01:36AM (#23496367)
Principled neutrality is fine for acceptable use. There’s no moral quandary in closing the door to abusers.
Re:A Facebook crawler was making 7M requests per day to my s... by zdragnar on Friday June 12, 2020 @02:15AM (#23496540)
Isn't that the argument that providers make for wanting to meter usage? I.e. video streamers, torrenters and netflix and the like are 'abusing' the network by using a disproportionate amount of their capacity / bandwidth?

I guess my point is that "abuse" in this sense is pretty subjective.

Re:A Facebook crawler was making 7M requests per day to my s... by inopinatus on Friday June 12, 2020 @03:13AM (#23496842)
Not really, those things are easy to contrast. Network providers have always been comfortable blackholing DoS routes, and it’s never been controversial. That’s clearly distinct from those wanting to double-dip on transport revenues for routine traffic.

The difference is in whether both endpoints want the traffic, not whether (or on what basis) the enabling infrastructure wants to bear it.

Re:A Facebook crawler was making 7M requests per day to my s... by ttwinder on Friday June 12, 2020 @03:31AM (#23496948)
> There’s no moral quandary in closing the door to abusers

Doesn't necessarily apply to this conversation, but the moral mistake that people (and societies) frequently make is underestimating the nuance that should be exercised when identifying others as abusers.

Re:A Facebook crawler was making 7M requests per day to my s... by foobiekr on Thursday June 11, 2020 @10:37PM (#23495443)
if only there was a way to accidentally amplify that.
Re:A Facebook crawler was making 7M requests per day to my s... by raverbashing on Friday June 12, 2020 @02:27AM (#23496601)
You could just probably send an HTTP redirect to their own site, no need to play with DNS for that
Re:A Facebook crawler was making 7M requests per day to my s... by mint2 on Saturday June 13, 2020 @11:13AM (#23509974)
Probably better to find the highest level FB employees personal site that you can and send the million requests from fb there.
Re:A Facebook crawler was making 7M requests per day to my s... by tempestn on Friday June 12, 2020 @02:15PM (#23502025)
Except then you'd still have to deal with all the traffic.
Re:A Facebook crawler was making 7M requests per day to my s... by smallgovt on Thursday June 11, 2020 @04:47PM (#23493135)
>> The bots didn't identify as FB (used "spoofed" UAs)

That's surprising. What were the spoofed user agents that they used?

We've run into this issue also, but all Facebook bot activity had user agents that contained the string "facebookexternalhit".

Re:A Facebook crawler was making 7M requests per day to my s... by rob-olmos on Thursday June 11, 2020 @11:18PM (#23495677)
I've seen these these two user-agents from FB IPs, maybe others:

Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53

Mozilla/5.0 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1

Which also execute javascript in some modified sandbox or something, causing errors, and executing error handlers. Interesting attempt to analyze the crawler here: https://github.com/aFarkas/lazysizes/issues/520#issuecomment...

Re:A Facebook crawler was making 7M requests per day to my s... by lun4r on Friday June 12, 2020 @02:49AM (#23496704)
Yep, these were the UAs we also saw (amongst others). And also in our case those bots were executing the JS, even hitting our Google Analytics. For some reason GA reported this traffic to come from Peru and Philippines, while an IP lookup showed it belonged to FB registered in the US or Ireland
Re:A Facebook crawler was making 7M requests per day to my s... by adrianN on Friday June 12, 2020 @12:28AM (#23496025)
Set up a robots.txt that disallows Facebook crawlers, sue Facebook if the crawling continues for unauthorized access to computer systems, profit.
Re:A Facebook crawler was making 7M requests per day to my s... by albatross on Friday June 12, 2020 @03:06AM (#23496790)
I believe this only works if it is coming from a corporation and targeted at an individual -_-
Re:A Facebook crawler was making 7M requests per day to my s... by justinph on Friday June 12, 2020 @09:24AM (#23498961)
robots.txt is not a legal document. It is asking nicely, and plenty of crawlers purposefully ignore it.
Re:A Facebook crawler was making 7M requests per day to my s... by adrianN on Friday June 12, 2020 @10:10AM (#23499367)
I'm not a lawyer, but I believe I remember people being sued for essentially making a GET request to a URL they weren't supposed to GET.
Re:A Facebook crawler was making 7M requests per day to my s... by greggyb on Friday June 12, 2020 @12:50PM (#23501092)
Legal document is a tricky phrase to use. "No trespassing" signs are usually considered sufficient to justify prosecution for trespassing. If the sign is conspicuously placed, it does not usually matter if you actually see the sign or not.

I am not as familiar with law around accessing computer systems, but I imagine that given some of the draconian enforcement we've seen in the past that a robots.txt should be sufficient to support some legal action against someone who disregards it.

Re:A Facebook crawler was making 7M requests per day to my s... by dungdang on Saturday June 13, 2020 @04:15PM (#23512315)
the no tresspassing sign does not mean i can't yell at you from the street 'tell me your life story.' which you are free to ignore.
Re:A Facebook crawler was making 7M requests per day to my s... by greggyb on Tuesday June 16, 2020 @08:07PM (#23545966)
Sure, but federal law does prevent you from repeatedly placing that request into my mailbox. I don't even need a sign for that.

Making an http request does not fit cleanly as an analogue to yelling from the street, nor does it fit as an analogue to throwing a written request on a brick through a window. It is something different that must be understood on its own terms.

Re:A Facebook crawler was making 7M requests per day to my s... by wheresmycraisin on Thursday June 11, 2020 @06:31PM (#23493961)
Side question: how did you get in contact with facebook? I've an ad account that was suspended last year and gave up trying to contact them.
Re:A Facebook crawler was making 7M requests per day to my s... by justusw on Thursday June 11, 2020 @08:52PM (#23494851)
Similar experience, closed ad account because of “suspicious activity”, at least ten support tickets (half closed automatically), four lame apologies (our system says no, sry) and then finally, “there was an error in our system, you’re good to go”
Re:A Facebook crawler was making 7M requests per day to my s... by wheresmycraisin on Friday June 12, 2020 @10:40PM (#23506266)
I lost it because there was some sort of UI bug in the ad preview page that led the page to reload a bunch of times really quick, and boom, I'm apparently a criminal. You're lucky though, I never got it back and I had to change my business credit card because they somehow kept charging me after suspension.
Re:A Facebook crawler was making 7M requests per day to my s... by missedthecue on Thursday June 11, 2020 @07:13PM (#23494206)
Really? I've never had problems contacting them by email. They're one of the easiest tech companies to talk to.
Re:A Facebook crawler was making 7M requests per day to my s... by redeux on Thursday June 11, 2020 @07:23PM (#23494266)
In my experience they're one of the most useless and difficult companies I've ever tried to interact with.
Re:A Facebook crawler was making 7M requests per day to my s... by corobo on Thursday June 11, 2020 @10:54PM (#23495532)
The entirety of the universe is contained in the preceding two comments.
Re:A Facebook crawler was making 7M requests per day to my s... by peanutz454 on Friday June 12, 2020 @03:07AM (#23496797)
Aah, finally it all makes sense!
Re:A Facebook crawler was making 7M requests per day to my s... by lvs on Friday June 12, 2020 @11:13AM (#23500055)
Re:A Facebook crawler was making 7M requests per day to my s... by deadwing0 on Thursday June 11, 2020 @10:34PM (#23495417)
What did you contact them for? Just curious as I've almost always heard they're like Google and impossible to get a human response from.
Re:A Facebook crawler was making 7M requests per day to my s... by wheresmycraisin on Friday June 12, 2020 @10:39PM (#23506254)
What is their email? I've never found one that they'd respond to.
Re:A Facebook crawler was making 7M requests per day to my s... by lun4r on Friday June 12, 2020 @02:50AM (#23496710)
I have an option to email them, live chat, or have our account manager contact us. I guess if you spend enough on ads per month you are entitled to more support...?
Re:A Facebook crawler was making 7M requests per day to my s... by danmurphy on Friday June 12, 2020 @12:46PM (#23501047)
try contacting their NOC, they _may_ give you a human that can help.
Re:A Facebook crawler was making 7M requests per day to my s... by bishalb on Friday June 12, 2020 @09:17AM (#23498905)
Try their live chat.
Re:A Facebook crawler was making 7M requests per day to my s... by wheresmycraisin on Friday June 12, 2020 @10:39PM (#23506260)
Do they actually have a live chat available for smaller advertisers? When I looked last year there wasn't
Re:A Facebook crawler was making 7M requests per day to my s... by bishalb on Saturday June 13, 2020 @01:38AM (#23507093)
They do, I have used it a couple of times. Go go facebook.com/business/help click on get started button at the bottom for "find answers or contact support". Follow through, you will see a button called "chat with a representative".
Re:A Facebook crawler was making 7M requests per day to my s... by paulpauper on Thursday June 11, 2020 @04:50PM (#23493166)
twitter does the same thing. it sends a bunch of spoofed US visitors from Korea and Germany and US. The bots are spoofed to make it harder to filter them.
Re:A Facebook crawler was making 7M requests per day to my s... by rapind on Thursday June 11, 2020 @05:53PM (#23493681)
I wonder what the (legitimate?) reason is for them to spoof. Seems intentionally shady. Maybe there's a legit reason we're missing?
Re:A Facebook crawler was making 7M requests per day to my s... by detaro on Thursday June 11, 2020 @06:02PM (#23493757)
Possibly trying to avoid people sending them a different version of the page than users would see (of course they could change the page after the initial caching of a preview, but Twitter might refresh/check them later).

Also, you often need an impressive amount of the stuff thats in a normal UA string for random sites to not break/send you the "unsupported browser, please use Netscape 4 or newer!!!" page/..., although you normally can fit an identifier of what you really are at the end. (As an example, here's an iOS Safari user agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1" - it's not Mozilla, it's not Gecko, but it has those keywords and patterns because sites expect to see that)

Re:A Facebook crawler was making 7M requests per day to my s... by yjftsjthsd-h on Thursday June 11, 2020 @07:02PM (#23494130)
Yeah, I once tried to tell my browser to send... I forget; either no UA, or a blank UA string, or nonsense or just "Firefox" or something. I figured, "hey, some sites might break, but it can't be that important!" It broke everything. IIRC, the breaking point was that my own server refused to talk to me. Now, I still think this is insane, but apparently this really is how it is right now.
Re:A Facebook crawler was making 7M requests per day to my s... by hombre_fatal on Thursday June 11, 2020 @09:11PM (#23494965)
Should make you realize just how much abuse there is on the internet that it's worth it to just filter traffic with no UA.

Usually people get stuck on the fact that we can't have nice things, so X sucks for not letting us have nice things, yet I seem to never see people acknowledge why we can't have nice things.

Then I'd see a lot more "ugh, bad actors suck!" and less "ugh, websites are just trying to make life miserable for me >:("

Re:A Facebook crawler was making 7M requests per day to my s... by lkrubner on Friday June 12, 2020 @01:32AM (#23496353)
Is there an official error message for that? Because filtering no UA would trip me up every time I use wget. Most of the time, if I'm casually using wget for something, I don't bother with a UA. If sites started rejecting that, I'd like to get a clear error message, so I would not go crazy trying to figure out what the problem was. If I got a clear message "send a UA" then I would probably started wrapping my wget requests in a short bash script with some extra stuff thrown in to keep everyone happy. But I'd have to know what it is that is needed to keep everyone happy.
Re:A Facebook crawler was making 7M requests per day to my s... by auscompgeek on Friday June 12, 2020 @02:16AM (#23496547)
wget has a default User-Agent string.
Re:A Facebook crawler was making 7M requests per day to my s... by licebmi__at__ on Thursday June 11, 2020 @10:26PM (#23495369)
Well, if filtering for UA really makes things difficult for bad actors, they do suck but more in as a technical opinion than an moral statement.
Re:A Facebook crawler was making 7M requests per day to my s... by laughinghan on Thursday June 11, 2020 @10:24PM (#23495358)
That's amazing. Any idea what piece of middleware on your own server was doing that?
Re:A Facebook crawler was making 7M requests per day to my s... by yjftsjthsd-h on Friday June 12, 2020 @12:01AM (#23495892)
I don't remember, but what really got me was that I wasn't running anything that I expected to do fancy filtering; I think this was just Apache httpd running on CentOS. But there was no web application firewall, no load balancers, pretty sure fail2ban was only set up for sshd. It at least appeared that just the apache stock config was in play.
Re:A Facebook crawler was making 7M requests per day to my s... by bzb3 on Thursday June 11, 2020 @07:23PM (#23494260)
You removed a vital part of the http protocol and you're surprised when things break?
Re:A Facebook crawler was making 7M requests per day to my s... by zucker42 on Thursday June 11, 2020 @08:15PM (#23494628)
Seems like it follows the spec to me:

https://tools.ietf.org/html/rfc7231#section-5.5.3

Re:A Facebook crawler was making 7M requests per day to my s... by rapind on Thursday June 11, 2020 @06:54PM (#23494082)
That makes sense. I couldn't come up with a shady reason why they would do it to be honest, but I was curious.
Re:A Facebook crawler was making 7M requests per day to my s... by xg15 on Thursday June 11, 2020 @07:07PM (#23494161)
Re:A Facebook crawler was making 7M requests per day to my s... by technion on Thursday June 11, 2020 @09:14PM (#23494972)
When you know your target runs Internet Explorer, you serve phishing pages to IE users and some boring content to other users, at the server level. We've had this keep our user tests out of Google Safebrowse and so on. I'm sure similar tricks end up applied to Facebook's UA and "legitimate" marketing sites.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @02:07PM (#23491625)
Thanks man! I'll have a look.
Re:A Facebook crawler was making 7M requests per day to my s... by cdown on Thursday June 11, 2020 @02:48PM (#23492069)
Hey! Facebook engineer here. If you have it, can you send me the User-Agent for these requests? That would definitely help speed up narrowing down what's happening here. If you can provide me the hostname being requested in the Host header, that would be great too.

I just sent you an e-mail, you can also reply to that instead if you prefer not to share those details here. :-)

Re:A Facebook crawler was making 7M requests per day to my s... by traverseda on Thursday June 11, 2020 @03:04PM (#23492244)
I'm not sure I'd publicly post my email like that, if I worked at FB. But congratulations on your promotion to "official technical contact for all facebook issues forever".
Re:A Facebook crawler was making 7M requests per day to my s... by cdown on Thursday June 11, 2020 @03:05PM (#23492262)
My e-mail address is already public from my kernel commits and upstream work. :-)
Re:A Facebook crawler was making 7M requests per day to my s... by doommius on Thursday June 11, 2020 @03:09PM (#23492292)
Don't think I used my email for anything important doing my time at FB. If it gets out of hand he could just make a request to have a new primary email made and use the above one for "spam"
Re:A Facebook crawler was making 7M requests per day to my s... by thirtythree on Thursday June 11, 2020 @10:03PM (#23495254)
Curiousity question: does FB use Gmail/Google suite?
Re:A Facebook crawler was making 7M requests per day to my s... by dan15 on Thursday June 11, 2020 @11:08PM (#23495622)
FB uses Office365 for email. It was on-premise Exchange many many years ago, but moved "to the cloud" a while back.
Re:A Facebook crawler was making 7M requests per day to my s... by hirako2000 on Friday June 12, 2020 @01:43PM (#23501693)
Feels odd to read Facebook uses office365/exchange for emails. they haven't built their fsuite yet, I thought they would simply promote Facebook messenger internally. I'm only half joking.
Re:A Facebook crawler was making 7M requests per day to my s... by dan15 on Saturday June 13, 2020 @05:58PM (#23513141)
Most communication is via Workplace (group posts and chat). Emails aren't very common any more - mainly for communication with external people and alerting.
Re:A Facebook crawler was making 7M requests per day to my s... by callalex on Thursday June 11, 2020 @10:59PM (#23495566)
My impression is that they pretty much roll their own communication suite.
Re:A Facebook crawler was making 7M requests per day to my s... by rock_hard on Thursday June 11, 2020 @11:24PM (#23495713)
That’s somewhat correct

But at least for email/calendar backend its exchange

The internal replacement clients for calendar and other things are killer...have yet to find replacements

For the most part though they use Facebook internally for messaging and regular communication (technically now Worplace but before it was just Facebook)

Email is really just for external folks

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @03:35PM (#23492544)
I don't want to share my website for personal reasons, but here is some data from cloudflare dashboard (a request made on 11 Jun, 2020 21:30:55 from Ireland, I have 3 requests in the same second from 2 different IPs)

user-agent: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php) ip 1: 2a03:2880:22ff:3::face:b00c (1 request) ip 2: 2a03:2880:22ff:b::face:b00c (2 requests) ASN: AS32934 FACEBOOK

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @03:40PM (#23492610)
Yes requests are still coming. Thanks CloudFlare for saving my ass.
Re:A Facebook crawler was making 7M requests per day to my s... by Ueland on Friday June 12, 2020 @02:00AM (#23496473)
Hey,

I can by the way confirm this issue. I work in a large newspaper in Norway and around a year ago we saw the same issue. Thousands of requests per second until we blocked it . And after we blocked it, traffic to our Facebook page also plummeted. I assume Facebook considered our website down and thus wouldn't give users content from our Facebook page either as that would serve them content that would give a bad user experience. The Facebook traffic did not normalize before the attack stopped AND after we told Facebook to reindex all our content.

I'd you want more info, send me a email and il dig out some logs etc. thu at db.no

Re:A Facebook crawler was making 7M requests per day to my s... by fsociety on Thursday June 11, 2020 @04:28PM (#23492992)
Thanks for looking at this!
Re:A Facebook crawler was making 7M requests per day to my s... by 6c696e7578 on Friday June 12, 2020 @02:13AM (#23496528)
Thank goodness for mod_rewrite, which makes blocking/redirecting traffic on basic things like headers pretty easy.

https://www.usenix.org.uk/content/rewritemap.html

You could of course block upstream by IP, but if you want to send the traffic away from a CPU heavy dynamic page to something static that 2xx's or 301's to https://developers.facebook.com/docs/sharing/webmasters/craw... then this could be the answer.

Re:A Facebook crawler was making 7M requests per day to my s... by lun4r on Friday June 12, 2020 @03:22AM (#23496893)
Here are some more details from my report to FB:

"My webserver is getting hit with bursts of hundreds of requests from Facebook's IP ranges. Google Analytics also reports these hits and shows them as coming from (mostly) Philippines and Peru, however, IP lookup shows that these IPs belong to Facebook (TFBNET3). The number of these hits during a burst typically exceeds my normal traffic by 200%, putting a lot of stress at our infrastructure, putting our business at risk.

This started happening after the Facebook Support team resolved a problem I reported earlier regarding connecting my Facebook Pixel as a data source to my Catalog. It seems Facebook is sending a bot to fetch information from the page, but does so very aggressively and apparently call other trackers on the page (such as Google Analytics)"

69.171.240.19 - - [13/Aug/2018:11:09:52 +0200] "GET /items/ley3xk/ford-dohc-20-sierra-mondeo-scorpio-luk-set.html HTTP/1.1" 200 15181 "https://www.facebook.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"

"e.g. IP addresses 173.252.87.* performed 15,211 hits between Aug 14 12:00 and 12:59, followed by 13,946 hits from 31.13.115.*"

"What is also interesting is that the user agents are very diverse. I would expect a Facebook crawler to identify itself with a unique User-Agent header (as suggested by the documentation page mentioned earlier), but instead I see User-Agent strings that belong to many different browsers. E.g. this file contains 53,240 hits from Facebook's IP addresses with User-Agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"

There are a few Facebook useragents in there, but far less than browser useragents: 7,310 hits: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php) 2,869 hits: facebookexternalhit/1.1 1,439 hits: facebookcatalog/1.0 120 hits: facebookexternalua

Surprisingly, there is even a useragent string that mentions Bing: 6,280 hits: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534+ (KHTML, like Gecko) BingPreview/1.0b

These IPs don't only fetch the HTML page, but load all the page's resources (images, css, ..) including all third-party trackers (such as Google Analytics). Not only does this put unnecessary stress at our infrastructure, it drives up the usage costs of 3rd party tracking services and renders some of our reports unreliable."

final response from FB: "Thanks for your patience while our team looked into this. They've added measures to reduce the amount of crawler calls made. Further optimizations are being worked on as well, but for now, this issue should be resolved." <- NOT.

Re:A Facebook crawler was making 7M requests per day to my s... by stiray on Thursday June 11, 2020 @05:34PM (#23493494)
I dont really understand what is the issue. On my welcome page (while all other urls are impossible to guess) i give browser something that requires a few seconds of cpu at 100% to crunch. And tracking some user action in between, visting tarpitted urls etc. In last few years no bot came through. Why bother with robots.txt, just give them something to break their teeths...

(I would give you the url, but I just dont want ti be visited)

Re:A Facebook crawler was making 7M requests per day to my s... by cblades on Thursday June 11, 2020 @05:36PM (#23493517)
I don't think most users would appreciate having a site spike their CPU for a few seconds when they visit...at least I wouldn't.
Re:A Facebook crawler was making 7M requests per day to my s... by hombre_fatal on Thursday June 11, 2020 @10:00PM (#23495242)
The far-fetched "solution" along with the "I don't understand everyone doesn't do <thing that is easy to understand why everyone wouldn't do it>" make it hard for me to believe you're actually doing this. Sounds more like a shower thought, maybe fun weekend project, than something in production.
Re:A Facebook crawler was making 7M requests per day to my s... by trashburger on Thursday June 11, 2020 @05:43PM (#23493587)
Sounds like terrible UX! Won't browsers give you a "Stop script" prompt if you do that?
Re:A Facebook crawler was making 7M requests per day to my s... by aetherspawn on Thursday June 11, 2020 @05:38PM (#23493537)
I don’t think the solution is flatlining everyone’s CPUs.
Re:A Facebook crawler was making 7M requests per day to my s... by xg15 on Thursday June 11, 2020 @07:19PM (#23494245)
> but I just dont want ti be visited

Maybe you should just take your website offline?

Re:A Facebook crawler was making 7M requests per day to my s... by quickthrower2 on Thursday June 11, 2020 @07:32PM (#23494339)
How much have you mined?
Re:A Facebook crawler was making 7M requests per day to my s... by leafo on Thursday June 11, 2020 @01:18PM (#23491036)
Same thing has happened to me: https://twitter.com/moonscript/status/1124888489298808834

The network address range falls under Facebook's ownership, so I don't think it's someone spoofing. I do think it's very possible someone found a way to trigger crawl requests in large quantity. Alternatively, I would not be surprised it's just a bug on facebook's end.

Re:A Facebook crawler was making 7M requests per day to my s... by _jal on Thursday June 11, 2020 @01:41PM (#23491312)
They've done this before to me, too. First I tried `iptables -j DROP`, which made the machine somewhat usable, but didn't help with the traffic. After trying a few things, I tried `-j TARPIT`, and that appeared to make them back off.

Of course, sample size of 1, etc. It could have been coincidental.

Re:A Facebook crawler was making 7M requests per day to my s... by hinkley on Thursday June 11, 2020 @01:47PM (#23491398)
Tarpits are an underappreciated solution to a pool of bad actors.

You can add artificial wait times to responses, or you can just route all of the 'bad' traffic to one machine, which becomes oversubscribed (be sure to segregate your stats!). All bad actors fighting over the same scraps creates proportional backpressure. Just adding 2 second delays to each request won't necessarily achieve that if multiple user agents are hitting you at once.

Re:A Facebook crawler was making 7M requests per day to my s... by apocalyptic0n3 on Thursday June 11, 2020 @03:42PM (#23492620)
I never looked into the TARPIT option in iptables before reading your comment. That seems really useful. I've been dealing with on and off bursts of traffic from a single AWS region for the last month. They usually keep going for about 90 minutes every day, regardless of how many IPs I block, and consume every available resource with about 250 requests per second (not a big server and I'm still waiting for approval to just outright block the AWS region). I'm going to try a tarpit next time rather than a DROP and see if it makes a difference.
Re:A Facebook crawler was making 7M requests per day to my s... by rocho on Thursday June 11, 2020 @05:04PM (#23493276)
Be careful, as tarpitting connections can consume your resources faster than those of the attacker.
Re:A Facebook crawler was making 7M requests per day to my s... by hinkley on Thursday June 11, 2020 @06:28PM (#23493938)
Most spiders limit the number of requests per domain, so if it's stupidity and not malice, you probably don't have a runaway situation.

... unless you're hosting a lot of websites for people in a particular industry. In which case the bot will just start making requests to three other websites you also are responsible for.

Then if you use a tarpit machine instead of routing tricks, the resource pool is bounded by the capacity of that single machine. If you have 20 other machines that's just the Bad Bot Tax and you should pay it with a clean conscience and go solve problems your human customers actually care about.

Re:A Facebook crawler was making 7M requests per day to my s... by noir-york on Thursday June 11, 2020 @05:53PM (#23493682)
Only if you use conntracking though no?
Re:A Facebook crawler was making 7M requests per day to my s... by justinclift on Thursday June 11, 2020 @04:56PM (#23493214)
Interesting. Implemented DROP for some Cloudflare net blocks a few weeks ago due to lots of weird interrupted TCP connections from them.

That's seemed to be good enough, but will consider the TARPIT option if it turns out to be needed. :)

Re:A Facebook crawler was making 7M requests per day to my s... by jschwartzi on Thursday June 11, 2020 @05:11PM (#23493323)
one man’s weird interrupted TCP connection is another man’s nmap attempt.
Re:A Facebook crawler was making 7M requests per day to my s... by fomine3 on Thursday June 11, 2020 @08:50PM (#23494832)
TIL TARIPT!
Re:A Facebook crawler was making 7M requests per day to my s... by zackb on Thursday June 11, 2020 @03:37PM (#23492579)
This was happening to us > 5 years ago. The FB crawlers were taking out our image serving system as we used the og:image thing. What we did was route FB crawler traffic to a separate Auto Scaling Group to keep our users happy while also getting the nice preview image on FB when our content was shared. I can't understate the volume of the FB requests, I can't remember the exact numbers now but it was insane.
Re:A Facebook crawler was making 7M requests per day to my s... by omershapira on Friday June 12, 2020 @12:59AM (#23496186)
I once made a PHP page which fetches a random wikipedia article, but changes the title to "What the fuck is [TOPIC]?". It was incredibly funny, until I started getting angry emails from people, mostly threatening a form of libel lawsuit.

Turns out, since it was a front for all of wikipedia[1], google was agressively indexing it, but the results rarely made it to the first search page. And since this isn't exactly an important site, old results would stick around.

Hence a pattern:

1. Some Rando creates a page about themselves

2. Wikipedia editors, being holy and good, extinguish that nonsense

1.5. GOOGLE INDEXES IT

3. Rando, by nature of being a rando, googles themselves, doesn't find their wikipedia page anymore (that's gone), but does find a link to my site in the first page of google results with their name.

4. Lawyers get involved, somehow

Details: http://omershapira.com/blog/2013/03/randomfax-net/

[1] Hebrew wikipedia. I can't imagine what would've happened on the English version.

Re:A Facebook crawler was making 7M requests per day to my s... by smileybarry on Friday June 12, 2020 @12:44PM (#23501027)
I understand why people got angry, though. The title was rougly "What is this '<article name>' shit?"[1], with "shit" in this Hebrew context also able to be interpreted as calling the subject "shit".

Saying "מה זה לעזאזל X?"[2] is closer to "what the fuck is X?" (except it's more "what the hell" than "what the fuck").

[1] I wasn't sure how to portray this to non-Hebrew speakers but, surprisingly, Google Translate actually nailed it: https://translate.google.com/#view=home&op=translate&sl=auto...

[2] Google Translate got this example right, too: https://translate.google.com/#view=home&op=translate&sl=auto...

Re:A Facebook crawler was making 7M requests per day to my s... by bberenberg on Thursday June 11, 2020 @02:01PM (#23491571)
Doesn't ignoring headers and taking someones site down fall afoul of the CFAA? Especially given how comments here are showing that this is a recurring issue? Depending on which side of the fence you're on, there could be standing to go after FB for this either for money, or for their lawyers to help set a precedent to limit CFAA further.
Re:A Facebook crawler was making 7M requests per day to my s... by yupyup54133 on Thursday June 11, 2020 @02:26PM (#23491801)
When someone does this to Facebook its malicious and they go to jail. WHen Facebook does it to someone else... "oops".
Re:A Facebook crawler was making 7M requests per day to my s... by yupyup54133 on Thursday June 11, 2020 @02:29PM (#23491843)
Never forget Aaron Swartz. All he did was send download requests to JSTOR. https://www.youtube.com/watch?v=9vz06QO3UkQ
Re:A Facebook crawler was making 7M requests per day to my s... by gregf on Thursday June 11, 2020 @03:11PM (#23492327)
I'm going to get a ton of hate for this, but he was doing it with the intent to redistribute the content for free. He didn't own the content. There's a big difference. That being said it's very sad what came about of that. I really don't think the FBI needed to be involved.
Re:A Facebook crawler was making 7M requests per day to my s... by yupyup54133 on Thursday June 11, 2020 @03:13PM (#23492346)
> he was doing it with the intent to redistribute the content for free

There is actually no proof of this.

Re:A Facebook crawler was making 7M requests per day to my s... by gknoy on Thursday June 11, 2020 @03:23PM (#23492431)
Really? I felt that what happened to Aaron was a tragic injustice on many levels (from the fact that he was charged at all to the number of charges they threw at him), but for some reason I had always thought that it was fairly well-known that that was his intent.

I have no idea where I got that impression from, but I do recall reading several articles about him, as well as his blog around that time. It's possible I just internalized others' assumptions about his behavior, but it certainly seemed like an in-character thing for him to to.

Re:A Facebook crawler was making 7M requests per day to my s... by yupyup54133 on Thursday June 11, 2020 @03:36PM (#23492561)
IIRC, he had published a manifesto about how he believed that information that was paid for with public funds should be free for the public to view. However, I don't believe that he ever mentioned why he was making get requests to JSTOR's servers and I know that he never uploaded any of those JSTOR documents to the internet for public download.
Re:A Facebook crawler was making 7M requests per day to my s... by WealthVsSurvive on Thursday June 11, 2020 @05:59PM (#23493723)
Yeah, but any decent criminal lawyer could tear "he once wrote a manifesto" to shreds. His political beliefs would only be pertinent if he wrote the manifesto somehow in connection with what he was doing; otherwise, it would not be sufficient to show intent to distribute.
Re:A Facebook crawler was making 7M requests per day to my s... by throwaway2048 on Thursday June 11, 2020 @03:36PM (#23492562)
Criminal law is about proving things, not in-charachter assumptions.
Re:A Facebook crawler was making 7M requests per day to my s... by jrockway on Thursday June 11, 2020 @03:54PM (#23492712)
Intent is the sticking point for the vast majority of prosecutions. That's why you have a jury, not Compute-o-Bot 9000.
Re:A Facebook crawler was making 7M requests per day to my s... by type0 on Thursday June 11, 2020 @05:40PM (#23493560)
Yeah and Facebook did this crawlings with intent to commit CFAA - computer fraud and abuse, now someone call the feds quickly before the perpetrators are zucked into hiding
Re:A Facebook crawler was making 7M requests per day to my s... by occamrazor on Thursday June 11, 2020 @02:39PM (#23491969)
From the point of view of the law, the intent (malicious or benevolent) is often as important as the action itself.
Re:A Facebook crawler was making 7M requests per day to my s... by yupyup54133 on Thursday June 11, 2020 @03:09PM (#23492302)
Nah, it only matters if you are a large corporation or not. If you are a large corporation you will ruin your opponent financial with legal fees (whether they are guilty or not). If you are a small timer going up against a large corporation they will delay the court case until you can not afford the legal fees.
Re:A Facebook crawler was making 7M requests per day to my s... by cortesoft on Thursday June 11, 2020 @03:42PM (#23492617)
The always-classic "what color are your bits?"

https://ansuz.sooke.bc.ca/entry/23

Re:A Facebook crawler was making 7M requests per day to my s... by meritt on Thursday June 11, 2020 @02:12PM (#23491674)
No. The owner needs send Facebook a cease and desist and block their IPs in order to revoke authorization under the CFAA, and then Facebook would need to continue accessing his website despite explicitly being told not to. That's the precedent set by Craigslist v. 3Taps.

Whether or not the above even holds today (hiQ Labs v. LinkedIn argues it does not) remains to be decided in a current appeal to the Supreme Court.

Re:A Facebook crawler was making 7M requests per day to my s... by jokoon on Thursday June 11, 2020 @03:18PM (#23492377)
That's 81 request per second on average.

Shouldn't anybody doing such thing be liable, and be sued for negligence and required to pay damages?

That sounds like a lot of bandwidth (and server stress).

Re:A Facebook crawler was making 7M requests per day to my s... by Traster on Thursday June 11, 2020 @03:40PM (#23492602)
Yes, this was my first thought too - Facebook is essentially denial of servicing people's sites and it sounds like they're aware of it. Move fast and break your things. If this were your average Joe I'm fairly certain something like the DMCA could be used.
Re:A Facebook crawler was making 7M requests per day to my s... by sprayk on Thursday June 11, 2020 @06:27PM (#23493932)
What? How does the DCMA apply here at all?
Re:A Facebook crawler was making 7M requests per day to my s... by sirclueless on Thursday June 11, 2020 @08:58PM (#23494896)
The DMCA has a couple major parts. The part most people are familiar with deals with safe harbor provisions and "DMCA takedowns". The relevant part for this discussion makes it illegal to circumvent digital access-control technology. So you could argue that if you have reasonable measures in place to stop automated access of your content such as robots.txt then Facebook continuing to send automated requests would be a circumvention of your access controls.
Re:A Facebook crawler was making 7M requests per day to my s... by jrockway on Thursday June 11, 2020 @03:52PM (#23492701)
Shouldn't any public facing website have a rate limit? If someone attempts to circumvent simple rate limits (randomizing the source IP or header content), then that could demonstrate intent to cause damage, and you'd have a better case. But if you don't set a limit, how can you be mad that someone exceeded it?

(I know they're ignoring robots.txt, but robots.txt is not a law. And, it doesn't apply to user-generated requests, for things like "link unfurling" in things like Slack. I am guessing the crawler ignores robots.txt because it is doing the request on behalf of a human user, not to create some sort of index. Google is attempting to standardize this widely-understood convention: https://developers.google.com/search/reference/robots_txt)

Re:A Facebook crawler was making 7M requests per day to my s... by ricardobeat on Thursday June 11, 2020 @04:11PM (#23492879)
There is a cost to apply throttling, you still have to receive those requests and filter/block them, plus incoming bandwidth.

The post mentions setting `og:ttl` and replying with HTTP 429 - Too Many Requests, and both being ignored.

Re:A Facebook crawler was making 7M requests per day to my s... by sammitch on Thursday June 11, 2020 @07:18PM (#23494238)
Plenty of crawlers, including Facebook's, are operating out of huge pools of IPs usually smeared across multiple blocks. If you have an idea on how to ratelimit a crawler doing 2 req/s from 300+ distinct IPs with random spoofed UAs let me know when your startup launches.
Re:A Facebook crawler was making 7M requests per day to my s... by jrockway on Friday June 12, 2020 @04:53AM (#23497353)
There are many features that you can pick up on. TCP fingerprints, header ordering, etc. You build a reputation for each IP address or block, then block the anomalous requests.

If you don't want to do this yourself and you're already using Cloudflare... congratulations, this is exactly why they exist. Write them a check every month for less than one hour of engineering time, and their knowledge is your knowledge. Your startup will launch on time!

Re:A Facebook crawler was making 7M requests per day to my s... by dgellow on Thursday June 11, 2020 @04:15PM (#23492900)
The author specified that the crawler ignores 429 status code. So they do have some rate limit.
Re:A Facebook crawler was making 7M requests per day to my s... by jrockway on Thursday June 11, 2020 @05:24PM (#23493410)
I noticed that, but I get the feeling that sending that status code didn't reduce the amount of work the program did, so it's kind of a pointless. You can say "go away", but at some point, you probably have to make them go away. (All RFC6585 says about 429 is that it MUST NOT be cached, not that the user agent can't try the request again immediately. It is very poorly specified.)

The author mentioned that they were using Cloudflare, and I see at least two ways to implement rate limiting. One is to have your application recognize the pattern of malicious behavior, and instruct Cloudflare via its API to block the IP address. Another is to use their rate-limiting that detects and blocks this stuff automatically (so they claim).

Like, there are many problems here. One is a rate limit that doesn't reduce load enough to serve legitimate requests. Another is wanting a caching service to cache a response that "MUST NOT" be cached. And the last is expecting people on the Internet to behave. There are always going to be broken clients, and you probably want the infrastructure in place to flat-out stop replying to TCP SYN packets from broken/malicious networks for a period of time. If the SYN packets themselves are overwhelming, welp, that is exactly why Cloudflare exists ;)

The author is right to be mad at Facebook. Their program is clearly broken. But it's up to you to mitigate your own stuff. This time it's a big company with lots of money that you can sue. The next time it will be some script kiddie in some faraway country with no laws. Your site will be broken for your users in either case, and so it falls on you to mitigate it.

Re:A Facebook crawler was making 7M requests per day to my s... by toast0 on Friday June 12, 2020 @01:31AM (#23496347)
Rate limiting websites is a lot of work. You have to figure out what kind of limits you should set, you have to figure out if that should be on an IP or a /24 or an ASN, if it's an ASN, you have to figure out how to turn an IP into an ASN.

If your website is pretty fast, you probably won't necessarily care about a lot of hits from one source, but if it's supposed to be a small website on inexpensive hosting, and all those hits add up to real transfer numbers, maybe it's an issue.

Re:A Facebook crawler was making 7M requests per day to my s... by quickthrower2 on Thursday June 11, 2020 @07:34PM (#23494349)
In the ToS, add a charge of 2 guineas, 5 shilling, a sixpence and a peppercorn per request.
Re:A Facebook crawler was making 7M requests per day to my s... by FridgeSeal on Thursday June 11, 2020 @07:54PM (#23494472)
Nah make it a strand of saffron per request and get your moneys' worth out of them.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @03:37PM (#23492569)
I saw also of 300reqs per second.
Re:A Facebook crawler was making 7M requests per day to my s... by rcfox on Thursday June 11, 2020 @03:28PM (#23492483)
Did anyone notice the branded IP address? 2a03:2880:20ff:d::face:b00c

"face:b00c"

Re:A Facebook crawler was making 7M requests per day to my s... by tombrossman on Thursday June 11, 2020 @03:41PM (#23492614)
My "404-pests" fail2ban-client status, which drops everything making *.php requests (This machine has never had PHP installed...):

2a03:2880:10ff:14::face:b00c 2a03:2880:10ff:21::face:b00c 2a03:2880:11ff:1a::face:b00c 2a03:2880:11ff:1f::face:b00c 2a03:2880:11ff:2::face:b00c 2a03:2880:12ff:10::face:b00c 2a03:2880:12ff:1::face:b00c 2a03:2880:12ff:9::face:b00c 2a03:2880:12ff:d::face:b00c 2a03:2880:13ff:3::face:b00c 2a03:2880:13ff:4::face:b00c 2a03:2880:20ff:12::face:b00c 2a03:2880:20ff:1e::face:b00c 2a03:2880:20ff:4::face:b00c 2a03:2880:20ff:5::face:b00c 2a03:2880:20ff:75::face:b00c 2a03:2880:20ff:77::face:b00c 2a03:2880:20ff:e::face:b00c 2a03:2880:21ff:30::face:b00c 2a03:2880:22ff:11::face:b00c 2a03:2880:22ff:12::face:b00c 2a03:2880:22ff:14::face:b00c 2a03:2880:23ff:5::face:b00c 2a03:2880:23ff:b::face:b00c 2a03:2880:23ff:c::face:b00c 2a03:2880:30ff:10::face:b00c 2a03:2880:30ff:11::face:b00c 2a03:2880:30ff:17::face:b00c 2a03:2880:30ff:1::face:b00c 2a03:2880:30ff:71::face:b00c 2a03:2880:30ff:a::face:b00c 2a03:2880:30ff:b::face:b00c 2a03:2880:30ff:c::face:b00c 2a03:2880:30ff:d::face:b00c 2a03:2880:30ff:f::face:b00c 2a03:2880:31ff:10::face:b00c 2a03:2880:31ff:11::face:b00c 2a03:2880:31ff:12::face:b00c 2a03:2880:31ff:13::face:b00c 2a03:2880:31ff:17::face:b00c 2a03:2880:31ff:1::face:b00c 2a03:2880:31ff:2::face:b00c 2a03:2880:31ff:3::face:b00c 2a03:2880:31ff:4::face:b00c 2a03:2880:31ff:5::face:b00c 2a03:2880:31ff:6::face:b00c 2a03:2880:31ff:71::face:b00c 2a03:2880:31ff:7::face:b00c 2a03:2880:31ff:8::face:b00c 2a03:2880:31ff:c::face:b00c 2a03:2880:31ff:d::face:b00c 2a03:2880:31ff:e::face:b00c 2a03:2880:31ff:f::face:b00c 2a03:2880:32ff:4::face:b00c 2a03:2880:32ff:5::face:b00c 2a03:2880:32ff:70::face:b00c 2a03:2880:32ff:d::face:b00c 2a03:2880:ff:16::face:b00c 2a03:2880:ff:17::face:b00c 2a03:2880:ff:1a::face:b00c 2a03:2880:ff:1c::face:b00c 2a03:2880:ff:1d::face:b00c 2a03:2880:ff:25::face:b00c 2a03:2880:ff::face:b00c 2a03:2880:ff:b::face:b00c 2a03:2880:ff:c::face:b00c 2a03:2880:ff:d::face:b00c

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @03:52PM (#23492695)
I think we're together in this, my friend
Re:A Facebook crawler was making 7M requests per day to my s... by golem14 on Thursday June 11, 2020 @05:05PM (#23493279)
I believe, but have not tried, that you can craft zipped files that are small but when expanding produce multi-gigabyte files. If you can sufficiently target the bad guys, you can probably grind them to a halt by serving only them these files. Some care needs to be taken so you don’t harm the innocent and don’t run afoul of any laws that may apply. Good luck.
Re:A Facebook crawler was making 7M requests per day to my s... by djxfade on Thursday June 11, 2020 @05:23PM (#23493403)
Do you think it would be possible to create something similar for gzip? If you then serve with Content-Type: text/html, and Content-Encoding: gzip, the client would accept the payload. And when it tries to expand it, it would get expanded to a large file, eating up their resources.
Re:A Facebook crawler was making 7M requests per day to my s... by golem14 on Thursday June 11, 2020 @07:20PM (#23494246)
That was the idea. There's a name for it - zip bomb. https://en.wikipedia.org/wiki/Zip_bomb

A superficial search leads to things like https://www.rapid7.com/db/modules/auxiliary/dos/http/gzip_bo...

https://stackoverflow.com/questions/1459673

You really want to be careful about potentially breaking laws ...

Re:A Facebook crawler was making 7M requests per day to my s... by golem14 on Thursday June 11, 2020 @07:51PM (#23494447)
Here is another article: https://www.blackhat.com/docs/us-16/materials/us-16-Marie-I-...

If FB supports brotli, a much bigger compression factor than 1000 is possible, apparently.

Re:A Facebook crawler was making 7M requests per day to my s... by Thorrez on Friday June 12, 2020 @03:06AM (#23496794)
Here's a brotli file I created that's 81MB compressed and 100TB uncomrpessed[1] (bomb.br). That's a 1.2M:1 compression ratio (higher than any other brotli ratio I see mentioned online).

There's also a script in that directory that allows you to create files of whatever size you want (hovering around that same compression ratio). You can even use it to embed secret messages in the brotli (compressed or uncompressed). There's also a python script there that will serve it with the right header. Note that for Firefox it needs to be hosted on https, because Firefox only supports brotli over https.

Back when I created it, it would crash the entire browser of ESR Firefox, crash the tab of Chrome, and would lead to a perpetually loading page in regular Firefox.

It's currently hosted at [CAREFUL] https://stuffed.web.ctfcompetition.com [CAREFUL]

[1] https://github.com/google/google-ctf/tree/master/2019/finals...

Re:A Facebook crawler was making 7M requests per day to my s... by notriddle on Thursday June 11, 2020 @07:14PM (#23494212)
A single layer of deflate compression has a theoretical expansion limit of 1032:1. ZIP bombs with higher ratios only achieve it by nesting a ZIP file inside of another ZIP file and expecting the decompressor to be recursive.

This means you can serve 1M payload and have it come out to 1G at decompression time. Not a bad compression ratio, but it doesn't seem like enough to break Facebook servers without taking on considerable load of your own.

http://www.zlib.net/zlib_tech.html

Re:A Facebook crawler was making 7M requests per day to my s... by njvsifhgnvion on Thursday June 11, 2020 @08:54PM (#23494862)
Just a guessing, but maybe a really large file with a limited character set, maybe even just repeating 1 character should compress really well
Re:A Facebook crawler was making 7M requests per day to my s... by njvsifhgnvion on Thursday June 11, 2020 @09:10PM (#23494957)
1 character repeated 1877302224 times has a compression ratio of 99.9% ~1.9GB compresses to ~1.8MB.
Re:A Facebook crawler was making 7M requests per day to my s... by x0 on Thursday June 11, 2020 @08:29PM (#23494708)
I believe zip bombs are pretty easily mitigated, with memory limits, cpu time ulimits, etc.

But zip bombs aren't limited to zip files... lots of files have some compression in them You can make malicious PNG's that do the same thing. Probably tonnes of other files.

Re:A Facebook crawler was making 7M requests per day to my s... by golem14 on Thursday June 11, 2020 @10:15PM (#23495308)
Good points. According to OP, the goal would be to persuade FB to back off crawling at 300 qps, not to bring down the FB crawl. Having each request expand to 1GB is probably already enough to do that, since a crawler implementing the mitigations you mentioned will likely reduce the crawl rate. Should be easily testable.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @03:35PM (#23492551)
The mighty power of IPV6 :P
Re:A Facebook crawler was making 7M requests per day to my s... by sprayk on Thursday June 11, 2020 @03:35PM (#23492547)
if only they could have convinced IANA to give them a vanity prefix.
Re:A Facebook crawler was making 7M requests per day to my s... by cranekam on Thursday June 11, 2020 @04:00PM (#23492774)
FB has 2a00::/12 (and probably other blocks?) and can make something that looks like its company name from [0-9a-f]. Why wouldn't it do something harmless and fun like this? It's not as if it requires special dispensation or is breaking any rules.
Re:A Facebook crawler was making 7M requests per day to my s... by gk1 on Thursday June 11, 2020 @04:26PM (#23492977)
I don't think the person was implying it's bad. Just pointing out an easter egg.
Re:A Facebook crawler was making 7M requests per day to my s... by cranekam on Friday June 12, 2020 @02:49AM (#23496707)
Ah, well if that’s the case then I apologise. My bad!
Re:A Facebook crawler was making 7M requests per day to my s... by detaro on Thursday June 11, 2020 @05:25PM (#23493418)
A single company does not get a /12 prefix. 2a00::/12 is almost half of the space currently allocated to all of RIPE NCC. Facebook seems to have 2a03:2880::/29 out of that /12, and a /40 through ARIN (2620:0:1c00::/40)
Re:A Facebook crawler was making 7M requests per day to my s... by cranekam on Friday June 12, 2020 @02:51AM (#23496715)
Ugh right you are. I misread the whois output and didn't stop to consider how realistic a /12 was. This is embarrassing.
Re:A Facebook crawler was making 7M requests per day to my s... by vvG94KbDUtRa on Thursday June 11, 2020 @10:26PM (#23495366)
ugh why is ipv6 impossible to understand :/
Re:A Facebook crawler was making 7M requests per day to my s... by detaro on Friday June 12, 2020 @03:09PM (#23502546)
Is the notation the problem here? IPs have 16 bytes now, so the notation is a bit more compact: hex instead of decimal numbers, and :: is a shortcut meaning "replace with as many zeros as necessary to fill the address to 16 bytes"
Re:A Facebook crawler was making 7M requests per day to my s... by chungy on Thursday June 11, 2020 @11:02PM (#23495586)
It's not. Think IPv4 but bigger.
Re:A Facebook crawler was making 7M requests per day to my s... by lun4r on Thursday June 11, 2020 @01:53PM (#23491480)
Re:A Facebook crawler was making 7M requests per day to my s... by lun4r on Thursday June 11, 2020 @01:55PM (#23491497)
Re:A Facebook crawler was making 7M requests per day to my s... by nickysielicki on Thursday June 11, 2020 @05:21PM (#23493392)
It bugs me that they require a login to see a bug report, especially in the case of this bug where those affected aren't necessarily facebook users.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @01:55PM (#23491498)
I've stumbled in that too.
Re:A Facebook crawler was making 7M requests per day to my s... by TheChaplain on Thursday June 11, 2020 @06:10PM (#23493808)
Reading through the article and comments here I find it odd that a company like FB can't get a crawler to respect robots.txt or 429 status codes.

Even I would stop and think "maybe I should put in some guards against large amounts of traffic" when writing a crawler, and I'm certainly not one of those brilliant minds who manage to pass their interview process.

Re:A Facebook crawler was making 7M requests per day to my s... by callalex on Friday June 12, 2020 @03:16AM (#23496854)
If the dev respected others’ boundaries and norms of expected behavior, they would probably work somewhere else.
Re:A Facebook crawler was making 7M requests per day to my s... by danschumann on Thursday June 11, 2020 @02:36PM (#23491931)
It's an interesting thing to think about, that someone can make a request to your website and you pay for it.

This is not how the mail works, where someone needs to buy a stamp to spam you.

Re:A Facebook crawler was making 7M requests per day to my s... by ortusdux on Thursday June 11, 2020 @02:52PM (#23492113)
My office still gets spam faxes to this day. The paper and toner only add up to a few cents a month, so it's not worth doing anything about.

I knew a realtor that had a sheet of black paper with a few choice expletives written on it that they would send back to spammers. There was an art to taping it into a loop so it would continuously feed. This was a few decades ago when a the spam faxes could cost more than a stamp.

Re:A Facebook crawler was making 7M requests per day to my s... by mulmen on Thursday June 11, 2020 @04:04PM (#23492814)
My desk phone at an old job used to get dialed by a fax machine. Not fun picking that up. I redirected it to a virtual fax line and it turns out it was a local clinic faxing medical records. I faxed them back with some message about you have the wrong number but they never stopped.
Re:A Facebook crawler was making 7M requests per day to my s... by fennecfoxen on Thursday June 11, 2020 @04:52PM (#23493188)
If you really wanted to make them stop, you might find a contact for their lawyer and make HIPAA noises at them ;)
Re:A Facebook crawler was making 7M requests per day to my s... by mulmen on Friday June 12, 2020 @03:49AM (#23497030)
I considered it. That was after my time in hospital IT. Really I wanted to stop getting my eardrums blown out by a robot. Luckily I happened to be working at a phone company so changing my number just took a couple clicks.
Re:A Facebook crawler was making 7M requests per day to my s... by tjalfi on Thursday June 11, 2020 @06:14PM (#23493835)
My dad used to receive a lot of misdirected faxes.

His solution was to send a return fax with disorderly handwriting begging and pleading for them to fax someone else.

The other person stopped faxing him.

Re:A Facebook crawler was making 7M requests per day to my s... by mulmen on Friday June 12, 2020 @03:52AM (#23497048)
I was using a virtual fax service so a digital equivalent would have been easy. Not sure if I was creative enough to invert the colors before sending my response. Really I just wanted the noise to stop.
Re:A Facebook crawler was making 7M requests per day to my s... by Nextgrid on Thursday June 11, 2020 @04:26PM (#23492976)
It’s because we as an industry decided to give in and submit to the cloud providers’ bullshit model of paying overpriced amounts for bandwidth while good old bare-metal providers still offer unmetered bandwidth for very reasonable prices.
Re:A Facebook crawler was making 7M requests per day to my s... by xmprt on Thursday June 11, 2020 @04:30PM (#23493004)
The question isn't about pricing. The fact that you pay for your own bandwidth and metal is a problem.
Re:A Facebook crawler was making 7M requests per day to my s... by Nextgrid on Thursday June 11, 2020 @06:00PM (#23493745)
Paying for your bandwidth and metal isn't a problem per-se as long as prices are reasonable (which they are with the old-school bare-metal providers). After all, those services do cost money to provide.

The problem happens when prices are extortionate (or the pricing model is predatory, ie pay per MB transferred instead of a flat rate per 1Gbps link) and relatively minor traffic translates to a major bill.

This particular issue is about 80 requests/second which is a drop in the bucket on a 1Gbps link. It would be basically unnoticeable if it wasn't for the cloud providers nickel & diming their customers.

Re:A Facebook crawler was making 7M requests per day to my s... by xmprt on Friday June 12, 2020 @03:39PM (#23502893)
You're still not getting it. I'm not arguing about whether it should be free or how much it should cost. I'm saying that when you have to pay for someone else's request, it's ripe for abuse. Instead, a system where the requester pays would be similar to how postage works in the US. Although I think it's highly unlikely that would make sense in a digital world.
Re:A Facebook crawler was making 7M requests per day to my s... by mulmen on Thursday June 11, 2020 @04:02PM (#23492797)
Most of my junk mail does not have stamps because the spammers drop it off in pallets at the post office and just have it delivered to everyone.

The USPS is like a reverse garbage service.

Re:A Facebook crawler was making 7M requests per day to my s... by thephyber on Thursday June 11, 2020 @02:50PM (#23492091)
This is a common pattern in (blocking i/o versus non-blocking i/o) and (sync task versus async task).

The typical analogy I hear for DDoS attacks is if you own a business and a giant group of protesters drives traffic to your store, but no one is interested in buying. They create a backlog to enter the store, they crowd the isles, they pick up your inventory, and the lines and crowds scare off your legitimate visitors/customers.

Re:A Facebook crawler was making 7M requests per day to my s... by avian on Thursday June 11, 2020 @01:18PM (#23491044)
This reminds me of a case years ago when I had a small-ish video file on my server that would cause Google Bot to just keep fetching it in a loop. It wasted a huge amount of bandwidth for me since I only noticed it in a report at the end of the month. I had no way of figuring out what was wrong with it, so I just deleted the file and the bot went away.
Re:A Facebook crawler was making 7M requests per day to my s... by spiderfarmer on Thursday June 11, 2020 @01:00PM (#23490858)
Was it a real FB crawler or a random buggy homemade bot masquerading as one?

Check here: https://developers.facebook.com/docs/sharing/webmasters/craw...

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @01:51PM (#23491446)
Re:A Facebook crawler was making 7M requests per day to my s... by hinkley on Thursday June 11, 2020 @01:49PM (#23491429)
Someone up to no good using a false flag would not surprise me in the slightest.

"who do people already like to hate? I'll pretend to be them."

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @01:56PM (#23491509)
Re:A Facebook crawler was making 7M requests per day to my s... by Wingy on Thursday June 11, 2020 @02:20PM (#23491744)
IP packets have a source field, which can be fake and not their actual IP. That's a Facebook IP, but the packet might not have actually come from it.
Re:A Facebook crawler was making 7M requests per day to my s... by detaro on Thursday June 11, 2020 @02:24PM (#23491787)
If they made actual requests that went through, a connection got established. That won't happen with a faked source.
Re:A Facebook crawler was making 7M requests per day to my s... by Wingy on Friday June 12, 2020 @12:29PM (#23500852)
Ah okay, thanks for helping me learn :)
Re:A Facebook crawler was making 7M requests per day to my s... by lgats on Friday June 12, 2020 @01:14AM (#23496258)
Could be the IP address OP is showing is actually from an X-Forwarded header or other proxy header (but not the actual source of the packet).
Re:A Facebook crawler was making 7M requests per day to my s... by thephyber on Thursday June 11, 2020 @02:52PM (#23492105)
UDP packets can fake their source IP. TCP packets realistically can't.
Re:A Facebook crawler was making 7M requests per day to my s... by hinkley on Thursday June 11, 2020 @06:25PM (#23493914)
More precisely, spoofing a TCP handshake is a problem that we know how to prevent. Odds are pretty good that your kernel has these protections enabled by default, but it's not guaranteed and you should check as a matter of due diligence.
Re:A Facebook crawler was making 7M requests per day to my s... by draw_down on Thursday June 11, 2020 @02:15PM (#23491699)
Why is it so hard for people here to believe that Facebook could have a crawler misbehaving? It is all over this thread, even though multiple people are saying they saw the same thing and confirmed the IP belonged to FB.

What gives?

Re:A Facebook crawler was making 7M requests per day to my s... by crazygringo on Thursday June 11, 2020 @01:31PM (#23491175)
If you can verify it's actually coming from Facebook's IP address (as many other comments here suggest), you should absolutely get in touch with them, though I'm not sure how. Perhaps their security team. That's a very serious bug that they'd be glad to catch -- if it's affecting you it's surely affecting others.

Otherwise it's a bot/malware/etc. spoofing Facebook and gone wrong, which sucks. And yeah just block it by UA, and hopefully eventually it goes away.

Re:A Facebook crawler was making 7M requests per day to my s... by mikece on Thursday June 11, 2020 @01:45PM (#23491381)
From the sounds of it the difference between Facebook's actual crawler and malware could be hard to define or differentiate, given the circumstances.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @01:47PM (#23491405)
It was from their IPs tried to figure out how to get in touch, without success
Re:A Facebook crawler was making 7M requests per day to my s... by hodgesrm on Friday June 12, 2020 @01:31PM (#23501595)
This is one of the better HN threads in a while. Starting from an easily described problem, it goes into a number of interesting directions including how FB seems to DDOS certain sites for reasons unknown, defenses against such attacks and DDOS in general, GPL licensing, how to collapse HN conversations, etc.

Not a profound comment. But it was really fun to follow the path down the various rabbit holes. This is why I like HN.

Re:A Facebook crawler was making 7M requests per day to my s... by sradman on Thursday June 11, 2020 @01:55PM (#23491495)
Interesting. According to the Facebook Crawler link provided by the OP [1], it makes a range request of compressed resources. I wonder if the response from the OP’s PHP/SQLite app isn’t triggering a crawler bug.

Maybe Cloudflare can step up and act as an intermediary to isolate the problem. Isolating DoS attacks is one of their comparative advantages.

[1] https://developers.facebook.com/docs/sharing/webmasters/craw...

Re:A Facebook crawler was making 7M requests per day to my s... by ablanco on Thursday June 11, 2020 @01:08PM (#23490938)
It would be nice to understand how you came to the conclusion that this was a Facebook bot.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @01:52PM (#23491455)
Re:A Facebook crawler was making 7M requests per day to my s... by akerro on Thursday June 11, 2020 @01:28PM (#23491135)
You can check list of IP addresses?
Re:A Facebook crawler was making 7M requests per day to my s... by huac on Thursday June 11, 2020 @01:38PM (#23491278)
the OP did not (explicitly) check, but you can check if the IP falls into a range allocated to Facebook e.g. https://ipinfo.io/AS32934
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @02:21PM (#23491751)
Of course I've checked. Here is a recent example. https://news.ycombinator.com/item?id=23491455
Re:A Facebook crawler was making 7M requests per day to my s... by lclarkmichalek on Thursday June 11, 2020 @02:39PM (#23491975)
Make sure you file a bug - there are a myriad of sources internally, but we can often hunt it down easily enough (assuming it gets triaged to eng). Important info is the host of the urls being crawled, and the User Agent attached to the requests (headers are also good too). A timeseries graph of the hits (with date & timezone specified) can also help.
Re:A Facebook crawler was making 7M requests per day to my s... by falcolas on Thursday June 11, 2020 @02:49PM (#23492076)
Why is this the owner's problem? Someone at Facebook should be filing the bug, or better yet instrumenting their systems so that incidents like this issue a wake-up-an-engineer alert.

Fuck this culture of "it's up to the victim of our fuckup to file a bug report with us".

Re:A Facebook crawler was making 7M requests per day to my s... by mulmen on Thursday June 11, 2020 @04:00PM (#23492777)
Not just “file a bug report” but also compile a time series graph (lol) and then pray that Facebook triages it correctly, which they have no incentive to do.
Re:A Facebook crawler was making 7M requests per day to my s... by rurp on Thursday June 11, 2020 @06:59PM (#23494117)
And to make things even more ridiculous, you need to sign in with a facebook account to even file a bug there.
Re:A Facebook crawler was making 7M requests per day to my s... by nhooyr on Thursday June 11, 2020 @03:25PM (#23492457)
100%
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @02:47PM (#23492049)
Re:A Facebook crawler was making 7M requests per day to my s... by namanaggarwal on Thursday June 11, 2020 @01:03PM (#23490898)
Did you check the ip and not just the UA? Does it matches with the one from fb?
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @01:52PM (#23491463)
Re:A Facebook crawler was making 7M requests per day to my s... by snorrah on Thursday June 11, 2020 @06:59PM (#23494118)
Surprise, Facebook not caring about playing nice with others!

Anyway, what reason would they have for so many requests? Why would they need to do 300 per second?

Re:A Facebook crawler was making 7M requests per day to my s... by nraynaud on Thursday June 11, 2020 @07:49PM (#23494435)
We had that with google in the past. We put a kml database on a web server and made the google maps API read them. Google went to get them without any throttling (my guess is that they primed their edge servers straight from us), the server went down so fast we sought there had been a hardware failure. We ended up putting a cdn just for google servers.
Re:A Facebook crawler was making 7M requests per day to my s... by amelius on Thursday June 11, 2020 @02:35PM (#23491922)
What would happen if you created a "rabbithole" for webcrawlers? Would they fall for it?
Re:A Facebook crawler was making 7M requests per day to my s... by sgift on Thursday June 11, 2020 @02:50PM (#23492085)
Modern web crawlers usually have mechanisms against rabbit holes, e.g. for Apache Nutch you can configure it should only follow to a certain depth of links from a root, it should only follow a redirect a few times and so on. It's always a trade-off though. If you cut off too aggressive you don't get everything, if you cut off too late you waste resources.
Re:A Facebook crawler was making 7M requests per day to my s... by forgotmypw17 on Thursday June 11, 2020 @01:45PM (#23491379)
Maybe someone at Facebook is testing a project that didn't work as expected?
Re:A Facebook crawler was making 7M requests per day to my s... by hinkley on Thursday June 11, 2020 @01:51PM (#23491447)
I wish we had better tools for things like this.

What I've heard happen is someone puts a governor on the system, and much later your new big customer starts having errors because your aggregate traffic exceeds capacity planning you did 2 years ago and forgot about.

Re:A Facebook crawler was making 7M requests per day to my s... by pmlnr on Thursday June 11, 2020 @04:47PM (#23493139)
Are you sure it's a crawler and not a proxy of some sort? Eg. one of your links is on something high traffic in facebook, and all requests are human, running through fb machines.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @05:45PM (#23493609)
Nah, it's a specific user-agent for their crawler
Re:A Facebook crawler was making 7M requests per day to my s... by dan15 on Thursday June 11, 2020 @11:05PM (#23495607)
Facebook caches URLs pretty aggressively (often you need to explicitly purge the cache to pick up updates) so I don't quite understand exactly what happened here. The article is very light on details. Do you have 7 million unique URLs that have been shared on Facebook? Or is it the same URL being scraped over and over?

Are you correctly sending caching headers?

Re:A Facebook crawler was making 7M requests per day to my s... by itsjloh on Thursday June 11, 2020 @08:32PM (#23494729)
When I enabled IPv6 traffic at home and logged default denies I constantly see Facebook owned IPv6 blocks trying to reach addresses browsing Facebook.

I have no idea what its trying to do but its legitimately the only IPv6 inbound traffic that isn't related to normal browsing.

Re:A Facebook crawler was making 7M requests per day to my s... by hank_z on Thursday June 11, 2020 @09:28PM (#23495062)
I’m a bit confused. Facebook is social media company, why do they send out crawlers?
Re:A Facebook crawler was making 7M requests per day to my s... by thenickdude on Thursday June 11, 2020 @10:38PM (#23495449)
Facebook shows previews of pretty much everything you share a link to, so at a minimum they have to fetch the page/image to build those previews.
Re:A Facebook crawler was making 7M requests per day to my s... by hank_z on Sunday June 14, 2020 @03:46PM (#23520718)
I see, thanks for the explanation.
Re:A Facebook crawler was making 7M requests per day to my s... by _drimzy on Thursday June 11, 2020 @08:18PM (#23494645)
Why would a crawler want to crawl the same page every second (let alone 71 times a second). Even if I were Google, wouldn't crawling any page every few mins (or say every minute) be way more than enough for freshness?
Re:A Facebook crawler was making 7M requests per day to my s... by zippy786 on Friday June 12, 2020 @10:44AM (#23499704)
There was a very old post: https://news.ycombinator.com/item?id=7649025, lots of ways to abuse Facebook network.
Re:A Facebook crawler was making 7M requests per day to my s... by Too on Friday June 12, 2020 @01:05AM (#23496218)
> I own a little website I use for some SEO experiments [...] can generate thousands of different pages.

Do you have more details on this? One could read that as if the page is designed to attract crawlers.

Re:A Facebook crawler was making 7M requests per day to my s... by cascader on Thursday June 11, 2020 @08:27PM (#23494698)
Is it worth duplicating the fb specific parts of your website at another web address as a test site, so that If it was similarly affected, you could provide the address info to help troubleshoot?
Re:A Facebook crawler was making 7M requests per day to my s... by pier25 on Thursday June 11, 2020 @05:24PM (#23493408)
Shouldn't have Cloudflare considered this a DDOS attack?
Re:A Facebook crawler was making 7M requests per day to my s... by alpb on Thursday June 11, 2020 @02:06PM (#23491615)
Hate to say but this is probably a FB engineer running a test/experiment and not a production crawler taking robots.txt etc into account.
Re:A Facebook crawler was making 7M requests per day to my s... by mcguire on Thursday June 11, 2020 @02:13PM (#23491683)
Or malware infecting some FB-internal machine?
Re:A Facebook crawler was making 7M requests per day to my s... by x0 on Thursday June 11, 2020 @08:35PM (#23494754)
Doubt it. If you're a bad enough dude to get control over Facebook's internal infrastructure, I doubt you'd blow that access by using it to spam random sites.
Re:A Facebook crawler was making 7M requests per day to my s... by mesozoic on Friday June 12, 2020 @07:05PM (#23504809)
Detect the crawler and delay the returns as long as you can. Have it use as many resources as you can that should be interesting.
Re:A Facebook crawler was making 7M requests per day to my s... by tlrobinson on Thursday June 11, 2020 @03:55PM (#23492727)
> And then they’ll probably ask you to pay the bill

Can anyone comment on whether there would be any legal basis for this?

Re:A Facebook crawler was making 7M requests per day to my s... by JoshMcguigan on Thursday June 11, 2020 @01:58PM (#23491536)
Thanks for sharing. I’d like to hear more about the website described here, it sounds very interesting.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @02:23PM (#23491772)
I can add I work in SEO (tech side), so the website is "super optimized", but it's not rocket science.
Re:A Facebook crawler was making 7M requests per day to my s... by Accacin on Thursday June 11, 2020 @03:39PM (#23492593)
Super optimized? The site takes longer to load than Hacker News for me.
Re:A Facebook crawler was making 7M requests per day to my s... by dewey on Thursday June 11, 2020 @03:40PM (#23492609)
They explicitly didn't mention the site this affected. It's not the one linked in the OP.
Re:A Facebook crawler was making 7M requests per day to my s... by Accacin on Thursday June 11, 2020 @03:45PM (#23492646)
Super optimized with Facebook button on each post then. Not my definition of 'super optimized', but you know.
Re:A Facebook crawler was making 7M requests per day to my s... by dewey on Thursday June 11, 2020 @03:48PM (#23492670)
Super optimized in a SEO sense, not in a pleasing the HN crowd kind of sense I'd assume ;)
Re:A Facebook crawler was making 7M requests per day to my s... by Accacin on Thursday June 11, 2020 @03:55PM (#23492722)
You're right, but for some reason the whole SEO thing just winds me up. It's my opinion that 'good' SEO makes sites worse for actual people to use.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @05:49PM (#23493636)
SEO is for machines, not for users IMHO.
Re:A Facebook crawler was making 7M requests per day to my s... by dewey on Friday June 12, 2020 @03:47AM (#23497023)
Still affects users.

Potential Positive: page speed, https

Negative: All blog posts with the same length, keywords dropped in every paragraph

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @02:22PM (#23491763)
Cant' share, sorry :)
Re:A Facebook crawler was making 7M requests per day to my s... by tejas5 on Thursday June 11, 2020 @06:30PM (#23493955)
Dude something is super sketchy
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Friday June 12, 2020 @02:23AM (#23496580)
Nah
Re:A Facebook crawler was making 7M requests per day to my s... by kuu on Friday June 12, 2020 @03:32AM (#23496950)
I wonder what the crawler does to it requires so many requests per day to the same site...
Re:A Facebook crawler was making 7M requests per day to my s... by drewmol on Thursday June 11, 2020 @11:14PM (#23495656)
Title change? A stupid Facebook crawler was making 7M requests per day to my website
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Friday June 12, 2020 @02:22AM (#23496575)
Nice one. ;)
Re:A Facebook crawler was making 7M requests per day to my s... by keevitaja on Friday June 12, 2020 @02:02AM (#23496477)
we had a similar experience with yandex. had to block it. crawler started to crawl on a larger e-shop by trying out every single possible filter combination. in other words we got ddos attack from yandex.
Re:A Facebook crawler was making 7M requests per day to my s... by shadykiller on Thursday June 11, 2020 @09:34PM (#23495098)
Then your website isn't stupid but rather the FB crawler
Re:A Facebook crawler was making 7M requests per day to my s... by tejas5 on Thursday June 11, 2020 @06:29PM (#23493947)
Do you have some sort of fb plugin in your SEO site?
Re:A Facebook crawler was making 7M requests per day to my s... by accurrent on Friday June 12, 2020 @12:04AM (#23495908)
Why does facebook have crawlers in the first place?
Re:A Facebook crawler was making 7M requests per day to my s... by magwa101 on Friday June 12, 2020 @09:07AM (#23498808)
Their 2FA page was broken yesterday...it goes on
Re:A Facebook crawler was making 7M requests per day to my s... by laurentdc on Thursday June 11, 2020 @01:15PM (#23491008)
Unrelated, but has anyone written a Chrome/Firefox extension to browse the web sending out Googlebot or Facebook user agent?

I wonder if you can bypass paywalls or see things that aren't generally presented to regular users

Re:A Facebook crawler was making 7M requests per day to my s... by Ambroos on Thursday June 11, 2020 @07:16PM (#23494225)
I surfed through a Google network for a bit a few years ago, and it does reveal things. The most common was Drupal and WordPress sites with some malicious code running that would link to online pharmacies on every page, but only to Google user agents / networks, I assume to boost their ranking. I let a bunch of webmasters know, most of them didn't believe me because they didn't see it themselves.
Re:A Facebook crawler was making 7M requests per day to my s... by Sohcahtoa82 on Thursday June 11, 2020 @02:23PM (#23491777)
You wouldn't even need an extension. Both browsers allow you to change your User-agent. An extension just makes it a little easier.

I have a UA switcher on Firefox so I can change my UA in two clicks. One of the built-in UA options is indeed the Googlebot.

Re:A Facebook crawler was making 7M requests per day to my s... by spiderfarmer on Thursday June 11, 2020 @01:18PM (#23491042)
Re:A Facebook crawler was making 7M requests per day to my s... by monkpit on Thursday June 11, 2020 @01:47PM (#23491393)
You chose to mention Safari, but link to an article about Chrome, Firefox, and Safari? Looks like all major browsers (probably Edge too) have this built in.
Re:A Facebook crawler was making 7M requests per day to my s... by danemacaulay on Thursday June 11, 2020 @01:26PM (#23491117)
Re:A Facebook crawler was making 7M requests per day to my s... by historyremade on Friday June 12, 2020 @09:34AM (#23499054)
Someone could use this for DDOS or Coinhive
Re:A Facebook crawler was making 7M requests per day to my s... by chirau on Thursday June 11, 2020 @03:40PM (#23492606)
I think sending back a `429 Too Many Requests` can solve this. Unless you want to block their IPs completely, which I doubt you'd want to do.
Re:A Facebook crawler was making 7M requests per day to my s... by jandrese on Thursday June 11, 2020 @04:04PM (#23492817)
A well made crawler that would support 429 codes isn't likely to have this problem in the first place.
Re:A Facebook crawler was making 7M requests per day to my s... by klohto on Thursday June 11, 2020 @03:53PM (#23492706)
> HTTP 429 -> ignored

It's in the article

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @03:52PM (#23492699)
I tried. It was ignored.
Re:A Facebook crawler was making 7M requests per day to my s... by gramakri on Thursday June 11, 2020 @03:49PM (#23492674)
It says in the post he did this already
Re:A Facebook crawler was making 7M requests per day to my s... by tejas5 on Thursday June 11, 2020 @06:28PM (#23493944)
Did you reach out to the fb contact?
Re:A Facebook crawler was making 7M requests per day to my s... by chrismarlow9 on Thursday June 11, 2020 @10:52PM (#23495524)
bit rot? 1 off anywhere in a DNS request could slam someone
Re:A Facebook crawler was making 7M requests per day to my s... by liveoneggs on Thursday June 11, 2020 @01:41PM (#23491326)
check these hits for an X-Purpose header or similar
Re:A Facebook crawler was making 7M requests per day to my s... by 6510 on Thursday June 11, 2020 @02:13PM (#23491677)
How do you monetize a robot?
Re:A Facebook crawler was making 7M requests per day to my s... by thephyber on Thursday June 11, 2020 @02:58PM (#23492183)
Establish contractual damages in a ToS for the site. Prove violation and offender. Take to court and collect damages.

Converting the effort into cash is tough, but the strategy exists.

Project HoneyPot is an API which allows any website to do this for honeypot email addresses which are injected the website, along with a ToS which says:

> By continuing to access the Website, You acknowledge and agree that each email address the Website contains has a value not less than US $50 derived from their relative secrecy.[1]

[1] https://www.projecthoneypot.org/terms_of_use.php

Re:A Facebook crawler was making 7M requests per day to my s... by the_jeremy on Thursday June 11, 2020 @03:47PM (#23492655)
Has that ever worked? I can't find any record of judgments one way or the other, on their website or elsewhere.
Re:A Facebook crawler was making 7M requests per day to my s... by thephyber on Thursday June 11, 2020 @06:38PM (#23493999)
I know ProjectHoneyPot was pushing a $x billion litigation against a spammer. I don't remember if/how that was resolved.

This guy[1] apparently spent years just suing email spammers and occasionally winning.

[1] https://www.danhatesspam.com/index.html

Re:A Facebook crawler was making 7M requests per day to my s... by the_jeremy on Friday June 12, 2020 @12:27PM (#23500818)
I also found the $1 billion lawsuit (against a bunch, not just one spammer, I believe), and could also not find any sort of resolution - not in legal docs, news pages, or project honeypot itself.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @02:22PM (#23491760)
That's a good question. Even better if Facebook can pay me some money :P
Re:A Facebook crawler was making 7M requests per day to my s... by machbio on Thursday June 11, 2020 @03:06PM (#23492271)
dont know whether the facebook bots execute javascript - https://www.rdegges.com/2017/how-to-monetize-your-website-wi...
Re:A Facebook crawler was making 7M requests per day to my s... by 8organicbits on Thursday June 11, 2020 @06:28PM (#23493941)
If it runs javascript, get it to mine bitcoins for you?
Re:A Facebook crawler was making 7M requests per day to my s... by ruuda on Thursday June 11, 2020 @03:55PM (#23492733)
Hi Napolux,

It looks like your site is using a theme based on my website (https://ruudvanasseldonk.com/, source at https://github.com/ruuda/blog). That is fine — it is open source after all, licensed under the GPLv3. But I can’t find the source code for your site, and I can’t find any prominent notices saying that you modified my source. Could you please add those?

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @04:02PM (#23492796)
Sure man no problem. The code for my theme is here BTW with credits To your original blog

https://github.com/napolux/coding.napolux.com/

Re:A Facebook crawler was making 7M requests per day to my s... by ruuda on Thursday June 11, 2020 @04:11PM (#23492880)
Thanks, I’m flattered to see it be used as inspiration :)

I searched quickly but I didn’t find that repository. You might want to link it somewhere in your footer or from a comment in the html.

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @04:13PM (#23492888)
Sure, no problem
Re:A Facebook crawler was making 7M requests per day to my s... by apolymath on Thursday June 11, 2020 @05:52PM (#23493677)
Flattered that your few, boring lines of CSS and HTML (that could easily be reproduced by a monkey) was used on someone else's website?
Re:A Facebook crawler was making 7M requests per day to my s... by dang on Thursday June 11, 2020 @05:56PM (#23493699)
We've banned this account for breaking the site guidelines.

If you don't want to be banned, you're welcome to email [email protected] and give us reason to believe that you'll follow the rules in the future.

https://news.ycombinator.com/newsguidelines.html

Re:A Facebook crawler was making 7M requests per day to my s... by archon810 on Friday June 12, 2020 @01:36AM (#23496369)
Toxic comments have no place on HN. Thank you for policing them so diligently.
Re:A Facebook crawler was making 7M requests per day to my s... by asveikau on Thursday June 11, 2020 @08:44PM (#23494802)
Sounds like yes, they are flattered for exactly that. And it's totally ok.

There exists small joys in life, like being flattered for something that other people might not think are much of a big deal.

I guess that's one reason why something may be called flattering in the first place, if they didn't see it as being all that much in their own eyes, but somebody else appreciates it.

Re:A Facebook crawler was making 7M requests per day to my s... by hirako2000 on Friday June 12, 2020 @01:48PM (#23501759)
And it's a beautiful lightweight theme.
Re:A Facebook crawler was making 7M requests per day to my s... by DJBunnies on Thursday June 11, 2020 @05:56PM (#23493701)
That isn't how you hacker news.
Re:A Facebook crawler was making 7M requests per day to my s... by not_a_moth on Friday June 12, 2020 @01:06AM (#23496223)
Am inexperienced in the technicals of this, is "taking inspiration" from someone else's website grounds for a copyright or gpl violation?

When I've worked with designers it usually starts "pick a site that inspires you", where the deliverable has resemblance.

Re:A Facebook crawler was making 7M requests per day to my s... by dspillett on Friday June 12, 2020 @01:53PM (#23501806)
The distinction can be difficult to make, but I think it is relatively clear here.

I'm "reading between the lines" here so could be wrong, but "looks like your site is using a theme based on" implies to me that there is enough code (markup, styles, perhaps script) similarly that is enough to not be pure coincidence. That suggests using some of the code not just being inspired to produce a clean-room design, so the GPL is relevant.

Re:A Facebook crawler was making 7M requests per day to my s... by PetahNZ on Thursday June 11, 2020 @04:07PM (#23492845)
My understanding is unless he's distributing it (not just serving it from a website) he doesnt need to release his changes. That's what the AGPL is for.
Re:A Facebook crawler was making 7M requests per day to my s... by ThrustVectoring on Thursday June 11, 2020 @05:05PM (#23493283)
It's not the copyright on the server code that is at issue, but the copyright on the HTML and CSS files (and portions thereof) that get distributed by the server.
Re:A Facebook crawler was making 7M requests per day to my s... by onli on Thursday June 11, 2020 @05:25PM (#23493419)
You see the contradiction, right? If it's about the HTML and the CSS the user has that code directly by visiting the site. No further action would be needed.

If it's about something that creates the HMTL and CSS, then OP has no requirement because of the GPL just from people visiting the site and accessing the output CSS/HTML. Because that's not distributing the code as defined by the GPL. The original author should have used the AGPL for that case - and if it's really just about HTML/CSS a different license altogether.

Re:A Facebook crawler was making 7M requests per day to my s... by dahfizz on Thursday June 11, 2020 @05:35PM (#23493504)
> If it's about the HTML and the CSS the user has that code directly by visiting the site. No further action would be needed.

Wrong. Transmitting modified GPL works requires more than just distributing the source:

    a) The work must carry prominent notices stating that you modified it, and giving a relevant date.  


    b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.   


    c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.  


    d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.  


  
https://www.gnu.org/licenses/gpl-3.0.html
Re:A Facebook crawler was making 7M requests per day to my s... by onli on Thursday June 11, 2020 @07:03PM (#23494135)
First, that is for Conveying Modified Source Versions. See the definition of conveying:

> To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.

Generally the common position here is to use the AGPL if you want to cover regular network access. Probably all a bit murky because the GPL does not really fit well to things like this. But mostly it does not apply here, pretty specifically by definition.

Maybe you'd have a point regardless if the source was directly the HTML and CSS. And it seems like I was wrong with the modification notice (but I wasn't thinking about modifications in particular). But it's not HTML and CSS directly. Having looked at the source in question now the transmitted HTML and CSS is evidently not the source code, as both is produced by template files.

Re:A Facebook crawler was making 7M requests per day to my s... by errantmind on Thursday June 11, 2020 @05:28PM (#23493445)
It is my understanding that style-related code is effectively not copyrightable in the US. Is my knowledge out of date?
Re:A Facebook crawler was making 7M requests per day to my s... by lsiebert on Thursday June 11, 2020 @05:54PM (#23493688)
NAL, but the resulting style isn't, as there are many ways to generate the same style, but the specific code is.
Re:A Facebook crawler was making 7M requests per day to my s... by dahfizz on Thursday June 11, 2020 @05:31PM (#23493473)
The actual GPL uses the word "convey", not distribute or serve. [1](section 5). Merriam-Webster defined "convey" as "to transfer or deliver". Pretty hard to argue that a web server does not transfer or deliver HTML + CSS.

[1] https://www.gnu.org/licenses/gpl-3.0.html

Re:A Facebook crawler was making 7M requests per day to my s... by johnwheeler on Thursday June 11, 2020 @04:11PM (#23492875)
Next time, have some courtesy for the author and the rest of us by requesting via personal exchange over email instead of hijacking the thread and distracting from the conversation.
Re:A Facebook crawler was making 7M requests per day to my s... by TheSpiceIsLife on Thursday June 11, 2020 @04:32PM (#23493019)
Boo hiss.

There’s plenty of room here for a polite exchange between professionals.

Collapse the thread and move on.

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @05:41PM (#23493568)
Come on. I love Ruud's posts and I took inspiration for my blog. He was right asking for a link, which I gladly provided.

That's it for me.

Re:A Facebook crawler was making 7M requests per day to my s... by TheSpiceIsLife on Thursday June 11, 2020 @05:54PM (#23493687)
Sorry, I think you might have misinterpreted my comment?
Re:A Facebook crawler was making 7M requests per day to my s... by narag on Thursday June 11, 2020 @06:20PM (#23493876)
It seems he intended to reply to the parent comment.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Friday June 12, 2020 @02:15AM (#23496539)
Yes, sorry. I was from mobile ;)
Re:A Facebook crawler was making 7M requests per day to my s... by TheSpiceIsLife on Thursday June 11, 2020 @06:27PM (#23493929)
Ah, yes, I see that now. Thanks for clearing that up.
Re:A Facebook crawler was making 7M requests per day to my s... by oh_sigh on Thursday June 11, 2020 @04:47PM (#23493134)
The question is why does everyone need to read what really could first be something done on a private communication.
Re:A Facebook crawler was making 7M requests per day to my s... by TheSpiceIsLife on Thursday June 11, 2020 @04:55PM (#23493209)
No body is forcing you to read anything.

Though I will concede: reading is involuntary to literate adults.

Having said that, there’s currently, what? 28 comments in this thread.

Is that indicative enough that at least some people have derived value from it?

Re:A Facebook crawler was making 7M requests per day to my s... by mhh__ on Thursday June 11, 2020 @04:22PM (#23492953)
If it were a financial thing I'd agree but if you aren't complying with the GPL I think it's good to set an example (but not shaming)
Re:A Facebook crawler was making 7M requests per day to my s... by LoSboccacc on Thursday June 11, 2020 @05:27PM (#23493437)
whoa there. the gpl v3 only require to have the gpl v3 declaration visible and to be copmpliant source code can be provided on demand, no need to have a source code link in the object as long as a a contact is available and the code is provided at a reasonable cost.
Re:A Facebook crawler was making 7M requests per day to my s... by Dahoon on Thursday June 11, 2020 @05:15PM (#23493358)
> ... and the rest of us ...

Please don't try to police the thread and speak for yourself only.

Re:A Facebook crawler was making 7M requests per day to my s... by johnwheeler on Thursday June 11, 2020 @05:44PM (#23493601)
“And the rest of us, excluding Dahoon”
Re:A Facebook crawler was making 7M requests per day to my s... by Shared404 on Thursday June 11, 2020 @07:59PM (#23494514)
You can add me to that list.
Re:A Facebook crawler was making 7M requests per day to my s... by ricardobeat on Thursday June 11, 2020 @04:00PM (#23492771)
They look similar at a glance (border-top + Calluna font), so he might have taken inspiration from yours, but doesn't seem to have used any of your assets - the styles are clearly different and based on the WP 'BlankSlate' theme.

(my personal blog had a top border like that a decade ago, when styles on the body were a novelty :))

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @04:03PM (#23492807)
I took inspiration but I didn’t know he was sharing the code for is blog

https://github.com/napolux/coding.napolux.com/

Re:A Facebook crawler was making 7M requests per day to my s... by ruuda on Thursday June 11, 2020 @04:08PM (#23492850)
I checked the source and it does indeed mention https://wordpress.org/themes/blankslate/, but judging from the screenshot there, that theme is just really a blank theme with no style at all, and it was used to include a different stylesheet.

The real style is at https://coding.napolux.com/wp-content/themes/coding.napolux...., which looks like normalize.css followed by a Wordpress adaptation of my stylesheet.

The similarity is more than superficial, the footer headers match exactly.

Re:A Facebook crawler was making 7M requests per day to my s... by thelean12 on Thursday June 11, 2020 @04:17PM (#23492912)
Come on, this is super petty. And that includes your license choice and your enforcement for this.
Re:A Facebook crawler was making 7M requests per day to my s... by yev on Thursday June 11, 2020 @05:15PM (#23493360)
I would back you up on this. This is super petty to be like that over a couple of lines of css.
Re:A Facebook crawler was making 7M requests per day to my s... by jasonlotito on Thursday June 11, 2020 @04:34PM (#23493036)
So, just to be clear, you are perfectly fine with someone taking something someone else created and violating the terms upon which they were given that thing?

e.g. If I took code you wrote and lets say released under an MIT license and claimed I wrote it and didn't give you any credit, and in fact released it under another license entirely, you'd be fine with that?

Re:A Facebook crawler was making 7M requests per day to my s... by thelean12 on Thursday June 11, 2020 @04:43PM (#23493103)
It's perfectly valid to criticize the original license choice.

GPLv3 is a very restrictive license, especially for what is essentially a micro blog (though I dislike the license for most open source software anyway).

Add on the original author going after a bit of CSS, not even the main effort of the project in question, and you've got my "petty" comment.

Re:A Facebook crawler was making 7M requests per day to my s... by apolymath on Thursday June 11, 2020 @05:47PM (#23493627)
There is an artist who takes images from magazines, repurposes them for his own art, and sells them for hundreds of thousands of dollars, then gets sued by the magazines & photographers & artists, and guess what, HE WINS AGAINST THOSE LAWSUITS. Copyright is BS, especially concerning HTML & CSS code. What a joke.
Re:A Facebook crawler was making 7M requests per day to my s... by jasonlotito on Thursday June 11, 2020 @10:33PM (#23495408)
You didn't answer my question. That pretty much says all that needs to be said.
Re:A Facebook crawler was making 7M requests per day to my s... by thelean12 on Friday June 12, 2020 @01:03AM (#23496204)
My answer is less useful to the discussion. But here you go:

1. I wouldn't use GPLv3

2. I wouldn't care if people stole my code that I open sourced or if they tried to license it a different way.

3. I personally follow the license of others when using their code. I wouldn't steal GPLv3 code without proper attribution etc. That's their right.

All that doesn't go against my initial opinion: GPLv3 for a small micro blog templating system is lame. Enforcing it for a bit of CSS is petty.

Re:A Facebook crawler was making 7M requests per day to my s... by coronadisaster on Friday June 12, 2020 @10:42AM (#23499684)
> All that doesn't go against my initial opinion: GPLv3 for a small micro blog templating system is lame. Enforcing it for a bit of CSS is petty.

It is a matter of principle, probably?

Re:A Facebook crawler was making 7M requests per day to my s... by chinhodado on Friday June 12, 2020 @01:15AM (#23496264)
Not the parent but your question and the implicit accusation is way too overblown. The design here is so generic that it can easily be used by tons of site out there. It's just a few lines of CSS here and there and if I have a design like that and come across something similar I would just chalk it up to someone with similar taste. Going out of your way to demand attribution for it is the very definition of petty.
Re:A Facebook crawler was making 7M requests per day to my s... by Aeolun on Thursday June 11, 2020 @06:09PM (#23493803)
> e.g. If I took code you wrote and lets say released under an MIT license and claimed I wrote it and didn't give you any credit, and in fact released it under another license entirely, you'd be fine with that?

If I released it on Github, under any license whatever? I’d more or less be expecting that.

If it was about the 4hr of work that went into my blog theme, I wouldn’t be bothered at all.

But then, I wouldn’t release anything like that under the GPL.

Re:A Facebook crawler was making 7M requests per day to my s... by jasonlotito on Thursday June 11, 2020 @10:34PM (#23495416)
So, you are okay with people violating other peoples licenses and ignoring copyright. Gotcha.
Re:A Facebook crawler was making 7M requests per day to my s... by thelean12 on Friday June 12, 2020 @01:05AM (#23496220)
You can simultaneously follow other people's licenses to the letter while also not caring if other people don't follow your's.
Re:A Facebook crawler was making 7M requests per day to my s... by Aeolun on Friday June 12, 2020 @12:14AM (#23495958)
I just think it’s naive to assume they won’t.

It’s a bit like putting a solid gold bar on your lawn and putting a sign next to it saying ‘please don’t take, this is mine’.

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @05:39PM (#23493542)
Hello there. I've added a link to your website in the footer! :)

https://coding.napolux.com/

Thanks for reaching out!

Re:A Facebook crawler was making 7M requests per day to my s... by ruuda on Thursday June 11, 2020 @05:57PM (#23493709)
Awesome, thank you! Sorry for derailing your thread, I did not mean for my comment to escalate like it did.
Re:A Facebook crawler was making 7M requests per day to my s... by RhodesianHunter on Thursday June 11, 2020 @03:58PM (#23492756)
Despite how it sounds, I ask this with zero judgment and pure curiosity.

Why do you care?

Re:A Facebook crawler was making 7M requests per day to my s... by mastermojo on Thursday June 11, 2020 @04:06PM (#23492834)
The author probably cares about either copy-left or the right to tinker. Some people believe it's important and others don't.

Basically any derivative product out of GPL3 code needs to either be open-source/copy-left, or if it uses the code as a library needs to let end users substitute that library for their own version.

Re:A Facebook crawler was making 7M requests per day to my s... by jimmaswell on Thursday June 11, 2020 @04:29PM (#23492996)
Worse than unimportant, I find copyleft harmful to the developer community as a whole. Software is hardly "free" when you have to bend to the author's demands to license your entire rest of your project under their ideology if you want to use it, and I think we should stop calling it so. Maybe "Conditionally Free Software" instead. You're hardly helping the world releasing libraries in terms that nobody but hobbyists (who are going to rip your code out and replace it if they start making a proprietary product, which is not evil) will find acceptable. It works for the Linux kernel and self-contained applications but that's it.
Re:A Facebook crawler was making 7M requests per day to my s... by Drakim on Thursday June 11, 2020 @04:40PM (#23493076)
Copyleft is about maximizing the users's rights, not the developers's rights. Companies can't take linux, put it on a router for sale, and then say that their customers/users aren't allowed to know what's going on on the box in terms of backdoors and spying. The users have a right to look at the source code if they wish.
Re:A Facebook crawler was making 7M requests per day to my s... by cjslep on Thursday June 11, 2020 @05:00PM (#23493247)
It may focus on user's rights, but it still requires technical expertise to exercise half of the 4 freedoms: #1 (inspection & modification) and #3 (distributing your modifications). Merely knowing to ask "can I see the source code" I would put into the "technical user" realm. Overwhelmingly, most people don't know or don't care.

The other two freedoms #0 (freedom to run) and #2 (freedom to share) are readily obvious to non-technical users. "Double click to run" and "drag and drop <on external drive> to copy". Unfortunately, they are also often permitted by non-free/libre software. So non-technical users that can readily see they can do #0 and #2 and generally have no litmus test to further determine whether the software is "free/libre".

This is a case where the ideology's practical concerns hamper its purity. I critique despite generally liking the FLOSS ideal, but it's important to know its flaws.

Re:A Facebook crawler was making 7M requests per day to my s... by lovecg on Friday June 12, 2020 @01:30AM (#23496343)
The users don't have to be technical to benefit from those freedoms though - there's a level of indirection involved. I might not have personally scrutinized every line of the Linux kernel, but knowing that there are tons of people in the world with the ability and motivation to do that inspires confidence.
Re:A Facebook crawler was making 7M requests per day to my s... by cjslep on Friday June 12, 2020 @02:33AM (#23496626)
I am not arguing that one has to be technical in order to benefit from those freedoms. I like FLOSS and agree users in general benefit.

I am saying that your example, for instance, stills falls under the "how does a non-technical user simply verify the software they just downloaded respects their freedoms?" which is an very real educational and cultural problem. For example, see the massive money and numerous gun ranges, gun stores, gun clubs, and other gun-associated organizations in the US that work to educate the "unskilled" general public on "how to be aware, recognize, and exercise their rights and freedoms" under the 2nd Amendment while respecting local laws. Folks generally are 1) aware they have the right and 2) have a low-friction no-special-technical-skilled path to exercising that right. The FLOSS movement is nowhere near that level of educating and making aware non-technical users of their freedoms, their digital rights, and how to then act upon them and exercise them. Folks generally are 1) unaware of libre software and 2) don't have a low-friction no-special-technical-skilled path to exercising that right.

Re:A Facebook crawler was making 7M requests per day to my s... by kevin_thibedeau on Thursday June 11, 2020 @06:30PM (#23493953)
They can take Linux and put it behind a locked bootloader that makes it impossible to replace with your own kernel. Sure you can have the modified sources but you can't do anything with it. Hence GPL3.
Re:A Facebook crawler was making 7M requests per day to my s... by jimmaswell on Thursday June 11, 2020 @04:55PM (#23493213)
Users don't care about any of that, but developers are certainly hindered by restrictive licenses, which in turn hurts users.

I never found a right to see source code compelling as a real right. To read the assembly and modify something they bought, sure, but not an entitlement to the source.

Re:A Facebook crawler was making 7M requests per day to my s... by dahfizz on Thursday June 11, 2020 @05:21PM (#23493393)
Nobody is forcing you to use GPL code. It is stinking of entitlement to demand that you get to use other people's code regardless of what they think about it.
Re:A Facebook crawler was making 7M requests per day to my s... by jimmaswell on Thursday June 11, 2020 @06:08PM (#23493795)
I don't feel entitled to it, I just consider the prevalence of copyleft bad for the developer community. License however you want, doesn't mean I'm entitled for criticizing it.

What might be stinking of entitlement is the idea users have an inalienable right to source code.

Re:A Facebook crawler was making 7M requests per day to my s... by vertex-four on Saturday June 13, 2020 @07:42AM (#23508744)
What about the prevalence of proprietary software? You can’t use that for anything without making a contract with the author either.
Re:A Facebook crawler was making 7M requests per day to my s... by teknopaul on Thursday June 11, 2020 @07:24PM (#23494270)
Users and developers are not different beasts. Users with source code are more likely to become developers. Developers are more likely to become users if they can tinker.
Re:A Facebook crawler was making 7M requests per day to my s... by Dahoon on Thursday June 11, 2020 @05:11PM (#23493332)
You sound very bitter that a developers that let others use their code gets to pick his license of choice. Should everything by locked down like Microsoft Windows code or an Apple phone? If what you want is for everything to be completely free from licenses instead, just code your own version and release it as freeware. If you only complain and don't then you are just being hypocritical.

>You're hardly helping the world releasing libraries in terms that nobody but hobbyists (who are going to rip your code out and replace it if they start making a proprietary product, which is not evil) will find acceptable

Now you are just trolling.

Re:A Facebook crawler was making 7M requests per day to my s... by jimmaswell on Thursday June 11, 2020 @06:14PM (#23493834)
I'm not bitter, just disappointed in all the wasted developer time that happens because people get caught up in these copyleft ideas. Of course you can pick whatever license you want but that doesn't mean it can't be criticized.

> If you only complain and don't then you are just being hypocritical.

You don't need to be an architect to complain about crumbling bridges, but indeed I have released software under more free licenses.

Re:A Facebook crawler was making 7M requests per day to my s... by Talanes on Thursday June 11, 2020 @11:49PM (#23495842)
>wasted developer time

Only if you assume copyleft code would otherwise be available for developers. The other alternative is people who don't want others profiting from their free code just don't release their code.

Re:A Facebook crawler was making 7M requests per day to my s... by licebmi__at__ on Friday June 12, 2020 @12:17AM (#23495971)
Well, it's easy to be disappointed in all the wasted developer time because copy left. It's transparent.

It's harder not only to be disappointed but to even notice all the wasted developer time because of closed source code because well it's even obscured how can you as a developer benefit from the code.

Re:A Facebook crawler was making 7M requests per day to my s... by ruuda on Thursday June 11, 2020 @04:36PM (#23493048)
I made my site open source so others who like it can take a look at how it works, or give it their own twist. Visitors of my site can see that they have that freedom, but visitors of an adaptation might not know if it’s not stated anywhere.
Re:A Facebook crawler was making 7M requests per day to my s... by naikrovek on Thursday June 11, 2020 @06:00PM (#23493735)
You're not wrong to request attribution. I don't know why you're getting so much flak.
Re:A Facebook crawler was making 7M requests per day to my s... by square_usual on Friday June 12, 2020 @01:23AM (#23496301)
Lots of people don't like the GPL (I love it myself, for reasons stated in the GP), and seeing it enforced in real time brings that debate up again.
Re:A Facebook crawler was making 7M requests per day to my s... by kungato on Thursday June 11, 2020 @04:02PM (#23492793)
Well I respect the question of GP if nothing then for principle. People should get their shit together and start respecting the license. The state today is horrendous and the culture is evolving into less and less respect of the license. If people don't follow them personally they wont care to follow them professionally either
Re:A Facebook crawler was making 7M requests per day to my s... by mpoteat on Thursday June 11, 2020 @04:04PM (#23492820)
I can only guess at motivations, but holistically people need to enforce their license terms or they lose their teeth.
Re:A Facebook crawler was making 7M requests per day to my s... by john_alan on Thursday June 11, 2020 @04:02PM (#23492799)
Cause it’s his special.
Re:A Facebook crawler was making 7M requests per day to my s... by timy2shoes on Thursday June 11, 2020 @04:02PM (#23492795)
Please read https://sfconservancy.org/copyleft-compliance/principles.htm.... My understanding is that if you do not enforce your copyright (or copyleft in this case) you can lose the copyright.
Re:A Facebook crawler was making 7M requests per day to my s... by 0x44 on Thursday June 11, 2020 @04:08PM (#23492849)
Whilst you can lose a trademark for not enforcing it, you cannot lose a copyright by not enforcing it (in the United States).
Re:A Facebook crawler was making 7M requests per day to my s... by type0 on Thursday June 11, 2020 @05:27PM (#23493439)
You are confusing this with trademark, that's completely different thing.
Re:A Facebook crawler was making 7M requests per day to my s... by playingchanges on Thursday June 11, 2020 @04:00PM (#23492767)
Kind of an odd request for an open source wordpress blog theme imo
Re:A Facebook crawler was making 7M requests per day to my s... by ganstyles on Thursday June 11, 2020 @04:05PM (#23492828)
Design layman here, switching between the two sites the top bar looks similar (it's just a solid line) except a different color and slightly different height. I don't see other similarities or assets coming from your site? Can you explain this request; I'm not sure two sites both using a blank horizontal rule across the top is something I would personally call out as similar.
Re:A Facebook crawler was making 7M requests per day to my s... by dubcanada on Thursday June 11, 2020 @04:02PM (#23492798)
It appears to be a serif font and a border top. That's all it is? Am I missing something.
Re:A Facebook crawler was making 7M requests per day to my s... by maxk42 on Thursday June 11, 2020 @04:59PM (#23493239)
GPL license states you must provide source code to the end-user. In this case, the end-user is legally Napolux, not the visitors to his site.
Re:A Facebook crawler was making 7M requests per day to my s... by userbinator on Thursday June 11, 2020 @08:07PM (#23494570)
In any case, View -> Source

The source code of a public website is automatically provided to everyone who visits it. This fact is unfortunately not well-known.

Re:A Facebook crawler was making 7M requests per day to my s... by mulmen on Thursday June 11, 2020 @09:27PM (#23495058)
That's... not how webpages work. This is why the AGPL even exists.
Re:A Facebook crawler was making 7M requests per day to my s... by laughinghan on Thursday June 11, 2020 @10:36PM (#23495437)
Your blog is awesome! I'm really glad you commented here, or I wouldn't have found it. I even forwarded your most recent post to some friends.
Re:A Facebook crawler was making 7M requests per day to my s... by staycoolboy on Thursday June 11, 2020 @04:33PM (#23493031)
I'm new to webadmining in the cloud and my website is getting hammered by baidu, google, fb, et others causing traffic I/O costs to increase.

What's an AWS LoadBalancer way of blocking this traffic? Again, noob here. THanks.

Re:A Facebook crawler was making 7M requests per day to my s... by namibj on Thursday June 11, 2020 @11:05PM (#23495605)
Don't host this stuff on AWS if you care about cost.
Re:A Facebook crawler was making 7M requests per day to my s... by staycoolboy on Thursday June 11, 2020 @11:57PM (#23495872)
So you don't know how to do this in AWS is what I'm hearing?
Re:A Facebook crawler was making 7M requests per day to my s... by namibj on Friday June 12, 2020 @02:09AM (#23496506)
My point is, that you don't want to do this inside of a load balancer there. I don't recall any traffic filtering abilities that would suffice, but I'm not fully up-to-date with the configurability either. If the load balancer supports it, a short search in the net or docs should surface an easily-applicable guide, and if not, I'd probably put that blocking closer to my app server.

And the reason against AWS for this would be both the general cost (AWS is not cost-efficient in many cases, unless you have complicated infrastructure that takes a lot of management, where the Infrastructure-as-code approach can give you a sizable benefit), the bandwidth cost in particular, and the lack of configurability of their services to e.g. apply suitable tar-pitting against such crawlers.

[dead]
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @03:55PM (#23492725)
Ask me anything. That specific website is a personal project of mine which I'd like not to disclose.

As you can see from my blog I'm not selling anything, I don't even have a banner on my blog, so where your suspect is coming from?

Re:A Facebook crawler was making 7M requests per day to my s... by Accacin on Thursday June 11, 2020 @04:01PM (#23492787)
Sorry, I was mostly joking. I definitely do believe Facebook could be responsible for this.
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @04:16PM (#23492908)
No problem :) I’m not the only one suffering this as you can see from the thread
Re:A Facebook crawler was making 7M requests per day to my s... by bkanber on Thursday June 11, 2020 @04:00PM (#23492772)
> Am I just getting too suspicious?

Yes, I think so. What's the conspiracy supposed to be here?

Re:A Facebook crawler was making 7M requests per day to my s... by shultays on Thursday June 11, 2020 @02:59PM (#23492193)
isn't this what robots.txt for? can't you block facebook?
Re:A Facebook crawler was making 7M requests per day to my s... by DreadY2K on Thursday June 11, 2020 @03:08PM (#23492288)
The article mentions that they tried that and the crawler ignored it.
Re:A Facebook crawler was making 7M requests per day to my s... by detaro on Thursday June 11, 2020 @03:04PM (#23492242)
As the article clearly states: no
Re:A Facebook crawler was making 7M requests per day to my s... by shultays on Thursday June 11, 2020 @03:06PM (#23492268)
whoops, my laziness. sorry
Re:A Facebook crawler was making 7M requests per day to my s... by dylan604 on Thursday June 11, 2020 @01:13PM (#23490975)
Why does FB need a crawler? Their users provide the content for their site. Is there an FB web search engine?
Re:A Facebook crawler was making 7M requests per day to my s... by youeseh on Thursday June 11, 2020 @01:13PM (#23490985)
When you paste in a URL to share it with your friends, Facebook tries to grab some information from that webpage to provide a summary.
Re:A Facebook crawler was making 7M requests per day to my s... by toomuchtodo on Thursday June 11, 2020 @01:20PM (#23491059)
What happens if that link performs an action upon a GET request?

Edit: Folks, I agree with you all, but I've seen a lot of garbage out there. Just asking the question for the discussion.

Re:A Facebook crawler was making 7M requests per day to my s... by dragonwriter on Thursday June 11, 2020 @01:24PM (#23491093)
Then the action needs to be harmless, because GET is defined as not merely idempotent but also safe.

Didn't we already learn this lesson after all the unsafe-GET problems unveiled when prefetching browser accelerators came on the scene in, IIRC, the late 1990s?

Re:A Facebook crawler was making 7M requests per day to my s... by thaumasiotes on Thursday June 11, 2020 @01:31PM (#23491179)
> Then the action needs to be harmless to repeat, because GET is defined as idempotent.

No, this is a terrible response. The action needs to be harmless to execute every time, not just every time after the first time.

HTTP DELETE is conceptually idempotent, but you don't want to be deleting stuff with GET requests. That's why the standard provides a DELETE method! The distinction that really matters is safe/unsafe, not idempotent/unique.

(Do you need to use DELETE for deleting stuff? No, POST is fine.)

Re:A Facebook crawler was making 7M requests per day to my s... by dragonwriter on Thursday June 11, 2020 @01:40PM (#23491298)
> The action needs to be harmless to execute every time, not just every time after the first time.

You are correct, and the grandparent post has been updated appropriately.

Re:A Facebook crawler was making 7M requests per day to my s... by bkanber on Thursday June 11, 2020 @04:10PM (#23492870)
> No, this is a terrible response.

As an aside, this kind of hyperbole really gets under my skin. It wasn't a terrible response. That statement is already technically correct: GET is idempotent, and the definition of idempotency is that it is harmless to repeat.

Your gripe is that OP didn't mention that GET is not only idempotent but must also be "safe"; i.e. that it should not alter the resource. OP got it 50% correct.

Does that omission make his comment a "terrible response"? No -- just incomplete.

Re:A Facebook crawler was making 7M requests per day to my s... by thaumasiotes on Thursday June 11, 2020 @07:11PM (#23494187)
Yes, it was a terrible response. Here are some examples of idempotent requests:

- Change the email address registered to my account from [email protected] to [email protected] .

- Instead of sending my direct deposit to account XXXX XXXX at Bank of America, from now on, send it to account YYYY YYYY at Wells Fargo.

- Delete my account.

- Drop the database.

None of these have any business being available to GET requests. Objecting to a misconfigured endpoint on the grounds that the functionality it implements is not idempotent implies that the lack of idempotence is what was wrong. That's a bad thing to do - anyone who takes your lesson to heart is still going to screw themselves over, because you gave them terrible advice. They may do it more than they otherwise would have, because you gave them advice that directly endorses really bad ideas. Idempotence or the lack thereof is beside the point.

Messing up on endpoint idempotence means you might hurt the feelings of a document. Messing up on endpoint safety means you might lose all your data as soon as anyone else links to your homepage. Or worse.

Re:A Facebook crawler was making 7M requests per day to my s... by jon_richards on Thursday June 11, 2020 @01:40PM (#23491294)
Most of the time, GET should not affect system state at all (other than caching, etc). Idempotent can still have effects on the first access. Even deletion can be idempotent.

I generally see PUT and PATCH classified as idempotent (for the same input).

Re:A Facebook crawler was making 7M requests per day to my s... by crazygringo on Thursday June 11, 2020 @01:23PM (#23491081)
Then like literally every search engine and website crawler ever does, the action will be performed.

Which is why it's bad practice to design your website using GET for actions. That's what POST is for.

I mean, using GET for actions will break so many things -- browser prefetching, link previews, the list is endless. If you use GET for actions, just... yikes.

Re:A Facebook crawler was making 7M requests per day to my s... by dependenttypes on Thursday June 11, 2020 @01:44PM (#23491370)
> browser prefetching, link previews

Both of them are pretty bad. I do not see GET actions breaking anything that is not trash.

Re:A Facebook crawler was making 7M requests per day to my s... by thinkindie on Thursday June 11, 2020 @01:22PM (#23491076)
that's your own problem because you are going against the HTTP protocol standard. GET should be idempotent.
Re:A Facebook crawler was making 7M requests per day to my s... by thaumasiotes on Thursday June 11, 2020 @01:28PM (#23491134)
Going against the HTTP standard isn't a problem. For example, it's a good practice to ignore HEAD requests as opposed to responding appropriately.

The problem with unsafe GET is that it conflicts with reality, not that it conflicts with the standard.

Re:A Facebook crawler was making 7M requests per day to my s... by dragonwriter on Thursday June 11, 2020 @01:43PM (#23491341)
> Going against the HTTP standard isn't a problem. For example, it's a good practice to ignore HEAD requests as opposed to responding appropriately.

That's only against the standard of you advertise HEAD as a supported method on the resource, which converts it from a good idea in some circumstances to a bad one, so if there is a good example to support your claim, that isn't it.

Re:A Facebook crawler was making 7M requests per day to my s... by thaumasiotes on Friday June 12, 2020 @09:03AM (#23498770)
The most classic example is the JWT specification, which says you need to honor the encryption algorithm defined by the token you receive. (JWT includes a "none" algorithm, making token forgery trivial when the parser implements the standard.)

It's known widely enough now that people have chosen to reinterpret the language of the standard in order to claim that their implementations are compliant -- after making the change specifically to bring themselves out of compliance.

(It's possible that it's been so long that the standard itself has been changed to accommodate this. But regardless, the point stands that standards compliance is not a virtue for its own sake. This wasn't a good idea back when everyone agreed that the standard required it, it's not a good idea now, and future bad ideas do not in general become good ideas by virtue of being specified in standards.)

Re:A Facebook crawler was making 7M requests per day to my s... by claudiulodro on Thursday June 11, 2020 @01:27PM (#23491124)
I'm not sure what sort of action you mean, but Facebook doesn't fetch the page in real-time using the client's browser. Some sort of job scrapes the page HTML looking for metadata and then uses that metadata to populate the preview. If you want to play around with what it "sees", you can test using the sharing debugger: https://developers.facebook.com/tools/debug/
Re:A Facebook crawler was making 7M requests per day to my s... by vasco on Thursday June 11, 2020 @01:22PM (#23491075)
That "link" doesn't respect the GET semantics then.
Re:A Facebook crawler was making 7M requests per day to my s... by WookieRushing on Thursday June 11, 2020 @01:23PM (#23491083)
Then it performs the action, what else would it do?
Re:A Facebook crawler was making 7M requests per day to my s... by slig on Thursday June 11, 2020 @01:49PM (#23491427)
And to prevent some URLs to be posted.
Re:A Facebook crawler was making 7M requests per day to my s... by systemvoltage on Thursday June 11, 2020 @01:21PM (#23491071)
This pattern needs to die.

Whenever I paste a link in any sort of messaging app - iMessages to Slack - it puts a thumbnail and summary, polluting the entire conversation with tons of noise.

Messaging apps have no business in looking up the URL. Just let it pass as a link.

Fuck everything about this and we need to push back on this nonsense.

Re:A Facebook crawler was making 7M requests per day to my s... by crazygringo on Thursday June 11, 2020 @01:26PM (#23491113)
I disagree completely, I find it extremely useful.

Most links are unreadable (e.g. an ID to a cloud file), and are truncated anyways even if readable.

The preview gives me the title of the webpage, which is infinitely more useful -- especially letting me know whether it's a document I've already seen (and don't need to open) or something new, and if so, what.

Re:A Facebook crawler was making 7M requests per day to my s... by systemvoltage on Thursday June 11, 2020 @01:42PM (#23491335)
To me it pollutes the discussion away from the messages and puts a bunch of thumbnails where it could just be a clean text conversation.

The thing that bothers me is also that I, as a user, have no choice - it just does it automatically.

Do you like IRC?

Re:A Facebook crawler was making 7M requests per day to my s... by JadeNB on Thursday June 11, 2020 @06:04PM (#23493772)
I suspect that most apps have a way to turn this off. Slack certainly does. That doesn't stop other users from seeing previews of your links, if it's set up that way for them, but it does prevent you from seeing previews of others' (and your own) links.
Re:A Facebook crawler was making 7M requests per day to my s... by occamrazor on Thursday June 11, 2020 @02:46PM (#23492040)
Whatsapp allows to delete the link box: enter the link, wait for the preview, backspace, and send. The hyperlink remains clickable too.
Re:A Facebook crawler was making 7M requests per day to my s... by shultays on Thursday June 11, 2020 @04:30PM (#23493001)
Slack does it as well
Re:A Facebook crawler was making 7M requests per day to my s... by katbyte on Thursday June 11, 2020 @02:04PM (#23491598)
this is one of those "people like different things" situations and a config option should be added to support both.
Re:A Facebook crawler was making 7M requests per day to my s... by JadeNB on Thursday June 11, 2020 @06:04PM (#23493777)
Slack, and I suspect most other messaging apps, has such a config option.
Re:A Facebook crawler was making 7M requests per day to my s... by mikece on Thursday June 11, 2020 @01:55PM (#23491501)
A funny story (well, funny because it didn't happen to me) was chronicled on a recent episode of Corey Quinn's "Whiteboard Confessions" -- https://www.lastweekinaws.com/podcast/aws-morning-brief/whit... -- where Slackbot's auto URL unfurling feature "clicked" an SNS alert unsubscribe link when a tech posted the a report including that link into a slack channel. If nobody lost their job over this triggering a SEV-1 alert I'm sure they had a laugh about it later.

Another issue with auto-unfurling links or generating previews of URLs is the potential for stalking. If I'm hunting my ex and I know their cell phone number AND that they have an iPhone I can simply send a link to a website and let iOS generate the preview... which then pings the URL of the website which I set up and I can now run geo-IP resolution and narrow down where my ex is (and maybe I follow up with a well-crafted PDF exploit when I'm ready to narrow down even more on an area).

While systemvoltage was a bit brusque in how the complaint was worded above, these "friendly and helpful" features of Slack, SMS, and other apps can have devastating unforeseen consequences. I question the value of having to opt out of these features instead of making them opt-in instead.

Re:A Facebook crawler was making 7M requests per day to my s... by crazygringo on Thursday June 11, 2020 @02:09PM (#23491644)
That's an interesting idea of a security breach.

In practice it's going to be difficult because:

1) You can't do effective geolocation on cell phone IP address, except perhaps at a country level [1]

2) Your ex would need to open your message to trigger the link preview loading. If you're stalking them, they're probably either ignoring you or blocking you

3) At most, if the ex is connected to a Wi-Fi network like Starbucks and opens the message, you'll be able to get the city they're in, maybe.

But at the end of the day, what you'd get from link previews is no different from embedding a tracker image in an e-mail. And while it requires someone to suspect they're being stalked, blocking would prevent all of this.

[1] http://www.cs.yale.edu/homes/mahesh/papers/ephemera-imc09.pd...

Re:A Facebook crawler was making 7M requests per day to my s... by Nextgrid on Thursday June 11, 2020 @04:33PM (#23493027)
As far as I know the iOS implementation mitigates that by generating the preview on the sender side. The receiver side will not make a request to the URL unless they manually click on it.
Re:A Facebook crawler was making 7M requests per day to my s... by icebraining on Thursday June 11, 2020 @07:41PM (#23494389)
Same for Whatsapp and Wire.
Re:A Facebook crawler was making 7M requests per day to my s... by systemvoltage on Thursday June 11, 2020 @02:06PM (#23491617)
haha, wow. This is some story. Thanks for sharing.
Re:A Facebook crawler was making 7M requests per day to my s... by compiler-guy on Thursday June 11, 2020 @01:27PM (#23491127)
Part of the goal here is to prevent people from clicking on malicious links. A preview helps with that.

Or, more simply, you can't be rickrolled if you know the destination in advance.

Re:A Facebook crawler was making 7M requests per day to my s... by netsharc on Thursday June 11, 2020 @02:41PM (#23492003)
The next level would be for the server to see who is requesting content. Facebook IP? "Here's some harmless HTML!". Browser IP? "Here's an executable pretending to be a harmless page!"
Re:A Facebook crawler was making 7M requests per day to my s... by nitrogen on Thursday June 11, 2020 @01:24PM (#23491091)
I like link previews. I don't like when they are managed server-side instead of client-side.
Re:A Facebook crawler was making 7M requests per day to my s... by crazygringo on Thursday June 11, 2020 @01:28PM (#23491141)
Caching a link's title and thumbnail server-side will save your site potentially millions of requests from Facebook and elsewhere.

Seems like a benefit for site owners to me.

Not to mention that the server is reducing the image size of a thumbnail, potentially converting from HTTP to HTTPS, and so on.

Re:A Facebook crawler was making 7M requests per day to my s... by lixtra on Thursday June 11, 2020 @02:00PM (#23491558)
> Seems like a benefit for site owners to me.

Maybe, but it’s definitely less control for the site owner.

Maybe she wants to do analytics on the previews (how far shared, which ip regions) or delete the content at a specific time. Etc.

Re:A Facebook crawler was making 7M requests per day to my s... by ufmace on Thursday June 11, 2020 @05:43PM (#23493589)
Also considering the sibling story, at least the server-side preview builder is definitely entirely unauthenticated to every possible service. A preview builder running on the client side might conceivably pick up your authentication to something in various circumstances.
Re:A Facebook crawler was making 7M requests per day to my s... by elviswolcott on Thursday June 11, 2020 @01:57PM (#23491518)
The issue with doing them client side (other than the missed cache opportunity of using a server) is that it means you're having every user in the chat send a request to an arbitrary URL from their device. Also CORS makes this impossible 99% of the time.
Re:A Facebook crawler was making 7M requests per day to my s... by ekimekim on Thursday June 11, 2020 @02:26PM (#23491807)
The third approach, which Signal uses as a privacy preservation measure, is for the sender to generate the link preview on send. Of course, this then opens up abuse where the sender can arbitrarily control the "link preview" to say whatever they want.
Re:A Facebook crawler was making 7M requests per day to my s... by president on Thursday June 11, 2020 @01:46PM (#23491383)
I just thought of a malicious idea. If I were Amazon or some other cloud provider, I could hammer my customers' web sites with tons of requests to make them pay more for resource usage (network bandwidth, s3 calls, misc per/unit usage etc). It would be hard to trace as well. Wonder if people are already doing that today.
Re:A Facebook crawler was making 7M requests per day to my s... by eloff on Thursday June 11, 2020 @02:10PM (#23491653)
The amount of bad will that would generate when, not if, it came to light would dwarf the possible gains. So ethical concerns aside, it would be idiotic.

Sometimes that doesn't stop the pointy haired bosses, because sometimes they are the perfect storm of unethical and moronic.

Re:A Facebook crawler was making 7M requests per day to my s... by k2xl on Thursday June 11, 2020 @01:10PM (#23490958)
This is actually a common tactic from malicious actors - pretend to be other bots to get through to websites. If you reverse lookup the IP address you can see if it part of the facebook network.

UA is very untrustworthy

Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @01:53PM (#23491472)
Re:A Facebook crawler was making 7M requests per day to my s... by napolux on Thursday June 11, 2020 @01:54PM (#23491491)