Facebook page snippets show JS-challenge. How to solve?

#1

Hi All, we have the following problem.

  1. a page is protected with JS-challenge for everyone except “known bots”
  2. there is a button on it to “share” it on facebook
  3. once shared, facebook generates a preview of the page, and
  4. it shows “checking your browser” thing instead of the actual contents

how can we make it work, while still having JS challenge on that page?

Thanks.

#2

You could also exclude Facebook’s network in your rule

(not cf.client.bot and ip.geoip.asnum ne 32934)

Just keep in mind, this will allow everyone from within Facebook’s infrastructure access too (e.g. employees).

1 Like
#3

thanks, but what is 32934? How could we obtain this number ourselves?

#4

Autonomous System Number
https://whois.arin.net/rest/asn/AS32934/pft?s=32934

#5

I confirm that it works, thanks. Strangelly, for another social netowork (vk) there was no any problems at all. Probably it’s recognized as a “known bot”.

#6

Surprisingly, Cloudflare’s list of Known Bots does not include Facebook and Twitter. But they say that…

Cloudflare plans to expand its list of known bots in the near future.

closed #7

This topic was automatically closed after 30 days. New replies are no longer allowed.