On 2026-03-27 09:29, george veranis wrote:
You need both
Also check the conf from Anubis service
Can you share it ?

Sure.

Here's my .env file

BIND=localhost:8923
BIND_NETWORK=tcp
DIFFICULTY=4
METRICS_BIND=127.0.0.1:9090
METRICS_BIND_NETWORK=tcp
POLICY_FNAME=/etc/anubis/openscience.yaml
REDIRECT_DOMAINS="..."
SERVE_ROBOTS_TXT=0
TARGET=http://localhost:3027
# openssl rand -hex 32
ED25519_PRIVATE_KEY_HEX=...
LOG_LEVEL=INFO

And my .yaml file. It's pretty much the standard config

bots:
  - name: FIS
    action: ALLOW
    remote_addresses:
      - ...

  - name: DNB
    action: ALLOW
    remote_addresses:
      - ...

  - import: (data)/bots/aggressive-brazilian-scrapers.yaml
  - import: (data)/meta/ai-block-aggressive.yaml
  - import: (data)/crawlers/_allow-good.yaml
  # Aggressively block AI/LLM related bots/agents by default
  - import: (data)/meta/ai-block-aggressive.yaml
# Allow common "keeping the internet working" routes (well-known, favicon, robots.txt)
  - import: (data)/common/keep-internet-working.yaml
  # Challenge Firefox AI previews
  - import: (data)/clients/x-firefox-ai.yaml

  # Generic catchall rule
  - name: generic-browser
    user_agent_regex: >-
      Mozilla|Opera
    action: WEIGH
    weight:
      adjust: 10

dnsbl: false

openGraph:
  enabled: false
  considerHost: false
  ttl: 24h

status_codes:
  CHALLENGE: 200
  DENY: 200

store:
  backend: valkey
  parameters:
    url: "redis://127.0.0.1:6379/0"

logging:
  sink: file
  level: "INFO"
  parameters:
    ...

  sink: stdio
  level: INFO
  parameters: {}

holds:
- name: minimal-suspicion # This client is likely fine, its soul is lighter than a feather
    expression: weight <= 0 # a feather weighs zero units
    action: ALLOW # Allow the traffic through

  - name: mild-suspicion
    expression:
      all:
        - weight > 0
        - weight < 10
    action: CHALLENGE
    challenge:
      algorithm: metarefresh
      difficulty: 1
  - name: moderate-suspicion
    expression:
      all:
        - weight >= 10
        - weight < 20
    action: CHALLENGE
    challenge:
      algorithm: fast
      difficulty: 2 # two leading zeros, very fast for most clients
  - name: mild-proof-of-work
    expression:
      all:
        - weight >= 20
        - weight < 30
    action: CHALLENGE
    challenge:
      algorithm: fast
      difficulty: 4
  - name: extreme-suspicion
    expression: weight >= 30
    action: CHALLENGE
    challenge:
      algorithm: fast




--
Armin Wenz

--
All messages to this mailing list should adhere to the Code of Conduct: 
https://lyrasis.org/code-of-conduct/
--- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/a5bd9685-564e-448f-be7e-074c91dde99f%40ub.uni-mainz.de.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to