Sha256: e643423b81f33f3deb0eb4b71622370f133124a8a2ddecdd3322be2f75665fd4
Contents?: true
Size: 310 Bytes
Versions: 3
Compression:
Stored size: 310 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) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
legitbot-0.2.1 | lib/legitbot/pinterest.rb |
legitbot-0.2.0 | lib/legitbot/pinterest.rb |
legitbot-0.1.2 | lib/legitbot/pinterest.rb |