Problem: Facebook preview when sharing a post on Facebook results in Access denied | {domain} used Cloudflare to restrict access

Solution:

Setting ASN in Cloudflare to unblock Facebook previews

  1. Select webiste in Cloudflare
  2. Dashboard
  3. Firewall
  4. Firewall Rules
  5. Create a Firewall rule
  6. Enter a Rule Name. It can be anything you want for example, Facebook Unblock
  7. Set AS Num equals 32934 or AS Num equals 63293 which will give you the expression preview (ip.geoip.asnum eq 32934) or (ip.geoip.asnum eq 63293)
  8. Choose action Allow
  9. Save the rule