Skip to content

Commit

Permalink
update validate.js
Browse files Browse the repository at this point in the history
  • Loading branch information
e-moran committed Oct 29, 2024
1 parent ceb3a9a commit 7eea149
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 56 deletions.
4 changes: 4 additions & 0 deletions validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ if (process.argv[2] === "--check") {
console.error("Item has wrong type specified for `url` string field:", item);
process.exit(1);
}
if (!Array.isArray(item.verification)) {
console.error("Item is missing required `validation` array field:", item);
process.exit(1);
}
// TODO: Check `addition_date` is defined properly
// TODO: Check or remove `depends_on` field
if (typeof item.instances !== "undefined") {
Expand Down
112 changes: 56 additions & 56 deletions well-known-bots.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"url": "http://www.google.com/bot.html",
"verification": [
{
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
]
}
],
Expand Down Expand Up @@ -52,10 +52,10 @@
"pattern": "Googlebot-Image",
"verification": [
{
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
]
}
],
Expand All @@ -72,10 +72,10 @@
"pattern": "Googlebot-News",
"verification": [
{
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
]
}
],
Expand All @@ -92,10 +92,10 @@
"pattern": "Googlebot-Video",
"verification": [
{
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
]
}
],
Expand All @@ -113,9 +113,9 @@
"url": "https://support.google.com/webmasters/answer/1061943?hl=en",
"verification": [
{
"type": "dns",
"masks": [
"rate-limited-proxy-***-***-***-***.google.com"
"type": "dns",
"masks": [
"rate-limited-proxy-***-***-***-***.google.com"
]
}
],
Expand All @@ -134,9 +134,9 @@
"url": "https://support.google.com/adwords/answer/2404197",
"verification": [
{
"type": "dns",
"masks": [
"rate-limited-proxy-***-***-***-***.google.com"
"type": "dns",
"masks": [
"rate-limited-proxy-***-***-***-***.google.com"
]
}
],
Expand All @@ -157,10 +157,10 @@
"url": "https://support.google.com/webmasters/answer/178852",
"verification": [
{
"type": "dns",
"masks": [
"***-***-***-***.gae.googleusercontent.com",
"google-proxy-***-***-***-***.google.com"
"type": "dns",
"masks": [
"***-***-***-***.gae.googleusercontent.com",
"google-proxy-***-***-***-***.google.com"
]
}
],
Expand All @@ -178,9 +178,9 @@
"url": "https://support.google.com/webmasters/answer/1061943?hl=en",
"verification": [
{
"type": "dns",
"masks": [
"rate-limited-proxy-***-***-***-***.google.com"
"type": "dns",
"masks": [
"rate-limited-proxy-***-***-***-***.google.com"
]
}
],
Expand Down Expand Up @@ -213,9 +213,9 @@
"url": "https://support.google.com/webmasters/answer/1061943?hl=en",
"verification": [
{
"type": "dns",
"masks": [
"rate-limited-proxy-***-***-***-***.google.com"
"type": "dns",
"masks": [
"rate-limited-proxy-***-***-***-***.google.com"
]
}
],
Expand All @@ -233,10 +233,10 @@
"url": "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers",
"verification": [
{
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
]
}
],
Expand All @@ -255,10 +255,10 @@
"url": "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers",
"verification": [
{
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
]
}
],
Expand All @@ -277,10 +277,10 @@
"url": "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers",
"verification": [
{
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
"type": "dns",
"masks": [
"crawl-***-***-***-***.googlebot.com",
"geo-crawl-***-***-***-***.geo.googlebot.com"
]
}
],
Expand All @@ -298,9 +298,9 @@
"url": "http://www.bing.com/bingbot.htm",
"verification": [
{
"type": "dns",
"masks": [
"@.search.msn.com"
"type": "dns",
"masks": [
"@.search.msn.com"
]
}
],
Expand Down Expand Up @@ -987,11 +987,11 @@
"url": "https://yandex.ru/support/webmaster/robot-workings/check-yandex-robots.html#robot-in-logs",
"verification": [
{
"type": "dns",
"masks": [
"yandex.ru",
"yandex.com",
"yandex.net"
"type": "dns",
"masks": [
"yandex.ru",
"yandex.com",
"yandex.net"
]
}
],
Expand Down Expand Up @@ -1100,10 +1100,10 @@
"url": "http://www.baidu.jp/spider/",
"verification": [
{
"type": "dns",
"masks": [
"@.baidu.jp",
"@.baidu.com"
"type": "dns",
"masks": [
"@.baidu.jp",
"@.baidu.com"
]
}
],
Expand Down

0 comments on commit 7eea149

Please sign in to comment.