facebookexternalhit & Python/3.10 aiohttp/3.9.3
2

Hi everyone,

We are seeing millions of requests from Facebook IPs and a combination of user agents both "facebookexternalhit" and "Python/3.10 aiohttp/3.9.3"

Other message boards are reporting similar activity. Does anyone have any idea what they are doing or what this surge is about? How are you handling the increased traffic?

Dan
Asked about 6 months ago
Dan

I do want to credit the solution mentioned in this thread. Looking for those specific headers with facebookexternalhit did slow things down. https://developers.facebook.com/community/threads/974370274080457/

June 18 at 7:33 AM
Selected Answer
1

Make sure those requests orignate from any of the registered FB networks, otherwise just block them. If it's the FB crawler rate limit the user agent to 1 request per URL per hour or something.

June 18 at 8:09 AM
Lars
Dan

Thanks for the reply, the IPs are FB. We can't outright block as we want shared URLs to have the full preview FB generates. A blend of measures is in place and we are at in a decent spot right now, but the activity is being noticed and no one knows details. https://www.abuseipdb.com/check/173.252.83.112 https://www.abuseipdb.com/check/69.171.230.13

June 18 at 8:23 AM
Lars

Just allow one requests per URL for this UA in a specified amount of time

June 18 at 8:25 AM
Dan

Again, a blend of measures is in place for our platform - back to my original question -> Does anyone have any idea what they are doing or what this surge is about?

June 18 at 8:27 AM
Lars

Like mentioned already: Please try a forum search first, it's not like this hasn't been noticed before

June 18 at 8:28 AM
Dan

I did and no one is talking about aiohttp in this context: https://developers.facebook.com/community/search?text=aiohttp

June 18 at 8:32 AM
Lars

I'm referring to the other threads that see a huge spike in such requests.

June 18 at 8:34 AM
Lars

Also feel free to add example logs if you see a different user agent than other users.

June 18 at 8:38 AM
Dan

One example FB IP we've recorded over 19,000 hits today in our security layer with the 'Python' user agent. "REMOTE_ADDR": "69.171.249.115", "HTTP_USER_AGENT": "Python/3.10 aiohttp/3.9.3"

88 requests from this same IP have the 'facebookexternalhit' user agent. "REMOTE_ADDR": "69.171.249.115", "HTTP_USER_AGENT":"facebookexternalhit\/1.1 (+http:\/\/www.facebook.com\/externalhit_uatext.php)"

June 18 at 10:23 AM
1

Side note: please try a forum search first

June 18 at 8:14 AM
Lars