Skip to content

Commit

Permalink
✨ add support for Marginalia
Browse files Browse the repository at this point in the history
  • Loading branch information
alaz committed Nov 30, 2023
1 parent 3312503 commit 354f91f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ end
- [IAS](https://integralads.com/ias-privacy-data-management/policies/site-indexing-policy/)
- [OpenAI GPTBot](https://platform.openai.com/docs/gptbot)
- [Oracle Data Cloud Crawler](https://www.oracle.com/corporate/acquisitions/grapeshot/crawler.html)
- [Marginalia](https://www.marginalia.nu/marginalia-search/for-webmasters/)
- [Petal search engine](http://aspiegel.com/petalbot)
- [Pinterest](https://help.pinterest.com/en/articles/about-pinterest-crawler-0)
- [Twitterbot](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started),
Expand Down
1 change: 1 addition & 0 deletions lib/legitbot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
require_relative 'legitbot/gptbot'
require_relative 'legitbot/ias'
require_relative 'legitbot/oracle'
require_relative 'legitbot/marginalia'
require_relative 'legitbot/petalbot'
require_relative 'legitbot/pinterest'
require_relative 'legitbot/twitter'
Expand Down
12 changes: 12 additions & 0 deletions lib/legitbot/marginalia.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module Legitbot # :nodoc:
# https://www.marginalia.nu/marginalia-search/for-webmasters/
class Marginalia < BotMatch
ip_ranges %w[
81.170.128.21/32
]
end

rule Legitbot::Marginalia, %w[search.marginalia.nu]
end

0 comments on commit 354f91f

Please sign in to comment.