Sha256: dddff4c834abe3410821af465e41e2f6a59e4bf64d6f81d2fbe340a08e3096ce

Contents?: true

Size: 314 Bytes

Versions: 8

Compression:

Stored size: 314 Bytes

Contents

module Legitbot
  # https://help.pinterest.com/en/articles/about-pinterest-crawler-0

  class Pinterest < BotMatch
    ValidDomains = ["pinterest.com."]

    def valid?
      subdomain_of?(*Pinterest::ValidDomains) && reverse_resolves?
    end
  end

  rule Legitbot::Pinterest, %w(Pinterestbot Pinterest/0.2)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
legitbot-0.3.2 lib/legitbot/pinterest.rb
legitbot-0.3.1 lib/legitbot/pinterest.rb
legitbot-0.3.0 lib/legitbot/pinterest.rb
legitbot-0.2.7 lib/legitbot/pinterest.rb
legitbot-0.2.6 lib/legitbot/pinterest.rb
legitbot-0.2.4 lib/legitbot/pinterest.rb
legitbot-0.2.3 lib/legitbot/pinterest.rb
legitbot-0.2.2 lib/legitbot/pinterest.rb