Skip to content

feat: Enhance AI Bot detection in api/negotiation.py #4

Description

@arun-fairfetch

Currently, api/negotiation.py handles the detection of scrapers vs. AI agents. We need to expand our detection patterns to ensure modern AI crawlers (like O1, ClaudeBot, etc.) are correctly identified and steered into the 402 flow.

Task:

Refactor the detection logic in api/negotiation.py.

Add a comprehensive list of common AI User-Agent patterns or regex to catch these crawlers reliably.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions