{
  "url": "https://paul.kinlan.me/user-agents-hitting-my-site/",
  "title": "User Agents Hitting My Site",
  "byline": "Paul Kinlan",
  "siteName": "Modern Web Development with Chrome",
  "leadImage": "https://paul.kinlan.me/api/card?title=User+Agents+Hitting+My+Site",
  "wordCount": 101,
  "readingTimeMinutes": 1,
  "cacheStatus": "HIT",
  "markdown": "# User Agents Hitting My Site\n\nI've always wanted to know which user agents are currently hitting my site... Am I getting crawled? Are ML bots sifting through my site?\n\nI added some middleware to my site to log the user agents hitting it, while using [Vercel's KV](https://vercel.com/docs/concepts/kv) to store the user agents and their counts. New agents are only admitted up to a fixed budget each minute, so a burst of bots can't flood the store with garbage.\n\nIf you are interested in the code, the [middleware](https://github.com/PaulKinlan/paul.kinlan.me/blob/main/middleware.ts) and the [api](https://github.com/PaulKinlan/paul.kinlan.me/blob/main/api/user-agents.ts) are both on GitHub.\n\n  \n\n#### Recently admitted user agents\n\n| User Agent | Count |\n| --- | --- |",
  "html": "<h1>User Agents Hitting My Site</h1>\n<p>I've always wanted to know which user agents are currently hitting my site... Am I getting crawled? Are ML bots sifting through my site?</p>\n<p>I added some middleware to my site to log the user agents hitting it, while using <a href=\"https://vercel.com/docs/concepts/kv\">Vercel's KV</a> to store the user agents and their counts. New agents are only admitted up to a fixed budget each minute, so a burst of bots can't flood the store with garbage.</p>\n<p>If you are interested in the code, the <a href=\"https://github.com/PaulKinlan/paul.kinlan.me/blob/main/middleware.ts\">middleware</a> and the <a href=\"https://github.com/PaulKinlan/paul.kinlan.me/blob/main/api/user-agents.ts\">api</a> are both on GitHub.</p>\n<h4>Recently admitted user agents</h4>\n<table>\n<thead>\n<tr>\n<th>User Agent</th>\n<th>Count</th>\n</tr>\n</thead>\n</table>\n"
}