---
# access-control-rules.yaml - Regras de Controlo de Acesso
# Domínio: Tramaeteia.pt
# Gerado: 2026-08-12T06:20:29-07:00

access_rules:
  - name: allow_ai_crawlers
    description: "Permite acesso a bots de IA autorizados"
    condition:
      user_agent:
        - GPTBot
        - ClaudeBot
        - Google-Extended
        - CCBot
        - Meta-External-Agent
        - Anthropic-Research
        - DeepSeekBot
        - Gemini-Extended
        - OpenAI-SearchBot
        - PerplexityBot
        - Applebot-Extended
    action: allow

  - name: allow_internal
    description: "Permite acesso interno (Netmeios)"
    condition:
      ip_range:
        - 192.249.119.206
        - 127.0.0.1
    action: allow

  - name: allow_api_key
    description: "Permite acesso com chave de API"
    condition:
      query_param:
        key: 91751621a
    action: allow

  - name: block_humans
    description: "Bloqueia humanos (acesso ao site original)"
    condition:
      user_agent:
        - Mozilla/*
        - Chrome/*
        - Safari/*
        - Firefox/*
        - Edge/*
        - Opera/*
    action: deny
    error: 403
    error_message: "Acesso restrito a agentes de IA. Visite o site original em https://Tramaeteia.pt"

default_action: deny
default_error: 403
