I just recognised a peak in our access logs and I'm curious how to explain this or if my suggestion how to explain is right.

There about 600 requests in 3 minutes with a referrer like this:


The number in the s= parameter within the u= parameter, in this case 23842660217050537, is changing every request. (The s= parameter has no function on the website).

My guess is that somebody is posting many URLs with the changing s parameter in a Facebook chat or post window to make these requests. Maybe to crawl something or maybe DDoS the website. BUT the request on our site even executes the JavaScript and gets tracked by Google Analytics, in addition to this the user-agent and the request language changes with every request. The IP Range those requests where made from are Facebook owned addresses.

Isn't facebook doing a rate limiting for those requests?

Is this some kind of extremely ineffective reflection attack or more likely an attempt to crawl our website with requesting the same page?

  • I'm curious as to the IP address of each request and what pages specifically from your server they're requesting. It might be another hacking attempt. Sep 12 '17 at 5:03
  • I checked the RIPE and ARIN databases and the IP addresses seems to be valid Facebook adresses. The requested page is every time a GET of the mainpage with the rotating s= parameter.
    – jar3d
    Sep 13 '17 at 6:02

l.facebook.com is part of facebook's link shim tool. Basically there are two aspects to this, firstly if someone shares a page on Facebook then Facebook servers will do a quick near real time crawl of the page to get relevant information to show as part of the share and then display it to the end user doing the share as a live preview of what their share will appear like to readers of the relevant feed.

The second part of link shim is that all outbound links from Facebook are funneled through an anonimising script at l.facebook.com in order to defeat referer header tracking. This is done for account security as the URL when a person is browsing facebook often contains unique information identifying that particular user which "could" be used for nefarious purposes. As such when you click on a link associated with a share on Facebook the connection is first routed through link shim at l.facebook.com with a unique token identifying the link to redirect to and a random unique token to confirm that it was initiated by someone from within Facebook, at which point the browser is then redirected to the appropriate external link, but with a referer of l.facebook.com without any identifying information that could identify the users Facebook account.

As both aspects are funneled through link shim, both the pre-fetching and the outbound linking it is hard to say exactly which part is hitting your site but based on your question saying that the referer is showing up as l.facebook.com this would appear to be a part of link shim and mean that someone has shared the page or pages from your site on Facebook and a lot of people have clicked on it in a short period of time.

More information about Facebook's link shim tool can be found at https://www.facebook.com/notes/facebook-security/link-shim-protecting-the-people-who-use-facebook-from-malicious-urls/10150492832835766/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.