---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/ip-geolocation/use-cases/identify-bot-traffic/copilot
---
# How to Identify Bot Traffic with Copilot

Copilot helps you turn bot detection insights into working code. Bulk-resolve visitor IPs to identify hosting providers, then generate the firewall rules, rate-limiting middleware, or bot-detection functions your application needs -- building the IP classification and blocking logic directly in your codebase.

## Setup

{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Bulk look up these IPs and flag hosting provider origins"
3. Copilot classifies each IP by provider type
4. Ask: "Generate a blocklist of data center IPs from this analysis"
5. Apply the blocklist to your application firewall

## Example Prompt

```
Parse the nginx access log, extract unique IPs, bulk look up their geolocation, and identify which are from cloud hosting providers.
```

## Tips

- Copilot can generate firewall rules from the analysis results
- Integrate IP classification into your CI/CD pipeline for security testing
- Use to validate that your bot protection middleware is working correctly
