Describe the bug
Default tree import requests (for default geography and chronostrat trees) from the backend are blocked by Cloudflare's Bot Fight Mode.
URLs cannot be exempt from bot detection in Bot Fight Mode, so the only solution currently is to disable it outright.
To Reproduce
Steps to reproduce the behavior:
- Assuming Bot Fight Mode is enabled:
- Create a new discipline in the System Configuration with a geography tree
- See that tree creation fails in the logs (Request Forbidden)
Expected behavior
Currently, tree mapping files are requested without any headers. Backend requests should have some sort of identification that distinguishes them from bot traffic.
|
resp = requests.get(mapping_url) |
Crash Report
2026-03-16T17:26:55.061Z [16/Mar/2026 12:26:55] [WARNING] [specifyweb.backend.setup_tool.tree_defaults:131] Error trying to preload Geography tree: 403 Client Error: Forbidden for url: https://files.specifysoftware.org/treerows/geography.json
- Specify 7 Version: 7.12.0
Describe the bug
Default tree import requests (for default geography and chronostrat trees) from the backend are blocked by Cloudflare's Bot Fight Mode.
URLs cannot be exempt from bot detection in Bot Fight Mode, so the only solution currently is to disable it outright.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Currently, tree mapping files are requested without any headers. Backend requests should have some sort of identification that distinguishes them from bot traffic.
specify7/specifyweb/backend/setup_tool/tree_defaults.py
Line 116 in a67df61
Crash Report