Legit Bot Classification for bot-detection-feature#232
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces an initial set of “legit bot” definitions under whitelists/benign_bots/legit_bots/ intended to be excluded from a bot-detection feature.
Changes:
- Added bot identification entries for GPTBot, Googlebot, Bingbot, Applebot, and Amazonbot.
- Captured bot verification hints using rDNS regexes and/or IP CIDR ranges in per-bot files.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| whitelists/benign_bots/legit_bots/gptbot.json | Adds GPTBot user-agent plus a list of CIDR ranges. |
| whitelists/benign_bots/legit_bots/googlebot.json | Adds Googlebot user-agent plus an rDNS suffix regex. |
| whitelists/benign_bots/legit_bots/bingbot.json | Adds Bingbot-related user-agent value plus an rDNS suffix regex. |
| whitelists/benign_bots/legit_bots/applebot.json | Adds Applebot user-agent plus an rDNS suffix regex. |
| whitelists/benign_bots/legit_bots/amazonbot.json | Adds Amazonbot user-agent plus an rDNS suffix regex. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+2
| # Googlebot - https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot | ||
| {"name":"googlebot","user_agent":"googlebot","rdns":["(^|\\.)googlebot\\.com$"]} |
Comment on lines
+1
to
+2
| # Bingbot - https://www.bing.com/webmasters/help/verifying-that-bingbot-is-bingbot-3905dc26 | ||
| {"name":"bingbot","user_agent":"bingbot|adidxbot|bingpreview","rdns":["(^|\\.)search\\.msn\\.com$"]} |
Comment on lines
+1
to
+2
| # Applebot - https://support.apple.com/en-us/119829 | ||
| {"name":"applebot","user_agent":"applebot","rdns":["(^|\\.)applebot\\.apple\\.com$"]} |
Comment on lines
+1
to
+2
| # Amazonbot - https://developer.amazon.com/amazonbot | ||
| {"name":"amazonbot","user_agent":"amazonbot","rdns":["(^|\\.)crawl\\.amazonbot\\.amazon$"]} |
Comment on lines
+1
to
+2
| # GPTBot (OpenAI) - https://openai.com/gptbot.json (creationTime 2025-10-30; refresh periodically) | ||
| {"name":"gptbot","user_agent":"gptbot","ranges":["4.227.36.0/25","20.125.66.80/28","20.171.206.0/24","20.171.207.0/24","52.230.152.0/24","74.7.175.128/25","74.7.227.0/25","74.7.227.128/25","74.7.228.0/25","74.7.230.0/25","74.7.241.0/25","74.7.241.128/25","74.7.242.0/25","74.7.243.128/25","74.7.244.0/25","132.196.86.0/24","172.182.202.0/25","172.182.204.0/24","172.182.207.0/25","172.182.214.0/24","172.182.215.0/24"]} |
| @@ -0,0 +1,2 @@ | |||
| # Bingbot - https://www.bing.com/webmasters/help/verifying-that-bingbot-is-bingbot-3905dc26 | |||
| {"name":"bingbot","user_agent":"bingbot|adidxbot|bingpreview","rdns":["(^|\\.)search\\.msn\\.com$"]} | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a first round of common bots to be excluded of the bot detection feature.