Skip to content

Commit

Permalink
✨ update Applebot (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
alaz authored Aug 30, 2024
1 parent a8852dc commit a4d24a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ end

- [Ahrefs](https://ahrefs.com/robot)
- [Amazon AdBot](https://adbot.amazon.com/index.html)
- [Applebot](https://support.apple.com/en-us/HT204683)
- [Applebot](https://support.apple.com/en-us/119829)
- [Baidu spider](http://help.baidu.com/question?prod_en=master&class=498&id=1000973)
- [Bingbot](https://blogs.bing.com/webmaster/2012/08/31/how-to-verify-that-bingbot-is-bingbot/)
- [DuckDuckGo bot](https://duckduckgo.com/duckduckbot)
Expand Down
9 changes: 6 additions & 3 deletions lib/legitbot/apple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
require 'ipaddr'

module Legitbot # :nodoc:
# https://support.apple.com/en-us/HT204683
# https://support.apple.com/en-us/119829
class Apple < BotMatch
ip_ranges '17.0.0.0/8'
domains 'applebot.apple.com.'
end

rule Legitbot::Apple, %w[Applebot]
rule Legitbot::Apple, %w[
Applebot
iTMS
]
end

0 comments on commit a4d24a1

Please sign in to comment.