Skip to content

getLocationFromGeoIp: return {geo: 'none'} for robot user-agents#80

Merged
mjradwin merged 1 commit into
mainfrom
claude/robot-detection-geolocation-smh3yj
Jun 30, 2026
Merged

getLocationFromGeoIp: return {geo: 'none'} for robot user-agents#80
mjradwin merged 1 commit into
mainfrom
claude/robot-detection-geolocation-smh3yj

Conversation

@mjradwin

Copy link
Copy Markdown
Member

Short-circuit the geoIP lookup when the request comes from a known
robot/bot user-agent (via isRobot), avoiding geolocation work for
crawlers and automated clients.

Adds unit tests covering robot, bot-like, and human user-agents.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_012mpjYztdfAcZjCcJjpXbcm

Short-circuit the geoIP lookup when the request comes from a known
robot/bot user-agent (via isRobot), avoiding geolocation work for
crawlers and automated clients.

Adds unit tests covering robot, bot-like, and human user-agents.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012mpjYztdfAcZjCcJjpXbcm
@sonarqubecloud

Copy link
Copy Markdown

@mjradwin mjradwin merged commit b2c6ed8 into main Jun 30, 2026
6 checks passed
@mjradwin mjradwin deleted the claude/robot-detection-geolocation-smh3yj branch June 30, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants