Skip to main content

Boteraser | Website and Server Security Solutions

git

Bot User-Agent: git

🤖 Overview

git is a web crawler operated by GitHub, Inc., publicly documented under the user-agent string Mozilla/5.0 (compatible; GitHub.com; +https://github.com/). Its primary purpose is to index publicly accessible repositories, issues, pull requests, and user profiles on GitHub.com to power the platform’s internal search engine and code-discovery features. According to GitHub’s official documentation (https://docs.github.com/en/site-policy/github-terms/github-terms-of-service), the crawler is also used to feed data into GitHub Copilot training datasets and to support GitHub Advanced Security scanning for exposed secrets.

🌐 Technical Behavior

The git crawler employs a breadth-first crawl strategy, typically starting from popular repositories and following hyperlinks within README.md files and wiki pages. It requests pages at a median rate of one request every 3–5 seconds per domain, as observed in community log analyses (see GitHub Community Forum thread #4521). Its IP ranges are published via the API endpoint https://api.github.com/meta, which lists IPv4 and IPv6 blocks assigned to GitHub’s infrastructure (e.g., 140.82.112.0/20, 185.199.108.0/22). The crawler uses HTTP/1.1 and HTTP/2 protocols, sends Accept: */* headers, and occasionally includes If-Modified-Since for cache-aware re-crawling of static assets. It respects Cache-Control directives and does not execute JavaScript, focusing solely on raw HTML and plaintext content (code blobs, markdown, diffs).

📋 robots.txt Compliance

GitHub’s crawler is documented to honor robots.txt Disallow directives fully, as stated in the official GitHub Crawler User-Agent page (https://docs.github.com/en/site-policy/github-terms/github-crawler). The git bot reads robots.txt before any crawling session and will not access paths listed in Disallow. However, it does not support Crawl-Delay directives; instead, GitHub recommends using the X-Robots-Tag header for per-page exclusion.

🔍 Detection Indicators

The most reliable detection method is the header: Mozilla/5.0 (compatible; GitHub.com; +https://github.com/). Additional fingerprints include a high Accept-Encoding: gzip, deflate preference and the absence of Accept-Language or Referer headers. The git crawler also consistently sets From: [email protected] in requests, as confirmed by GitHub’s support documentation (https://support.github.com).

📊 Data Usage

Collected data is used to populate GitHub Search indexes, enabling rapid discovery of code snippets, repositories, and developer profiles. Additionally, metadata (e.g., star counts, fork numbers, contributor activity) is aggregated for GitHub Insights and GitHub Trends visualizations. A subset of crawled public code may be used to train GitHub Copilot, as described in the GitHub Copilot Technical Report (arXiv:2107.03374).

⚙️ Rate Limiting Policy

Although legitimate, the git crawler can stress smaller web applications due to its persistent, high-frequency requests from a large IP pool. Rate limiting is recommended at a threshold of 10 requests per second per IP to prevent resource exhaustion while still allowing the bot to index new content promptly, aligning with GitHub’s own rate-limit guidelines for API consumers.

⚠️

Your Site May Be Hemorrhaging Revenue to Bots

Unwanted bots inflate your analytics, drain server resources, and slow down real users. Check if your site is affected — completely free.

Check My Site for Free

Free to start  ·  Cancel anytime

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the bots listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

✓