Sha256: 846f790cb7e9f832e17148f139fc59f6b0dba5a63a67a173c387132bbd770fc7
Contents?: true
Size: 491 Bytes
Versions: 15
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true require 'irrc' module Legitbot # :nodoc: # https://developers.facebook.com/docs/sharing/webmasters/crawler class Facebook < BotMatch AS = 'AS32934' ip_ranges do client = Irrc::Client.new client.query :radb, AS results = client.perform %i[ipv4 ipv6].map do |family| results[AS][family][AS] end.flatten end end rule Legitbot::Facebook, %w[ facebookexternalhit/1.1 facebookcatalog/1.0 ] end
Version data entries
15 entries across 15 versions & 1 rubygems