Skip to content

Commit 427380f

Browse files
authored
Merge pull request #300 from edx/dkaplan1/APER-4252_block-robots.txt-on-all-mfes,-idas,-and-edxapp
chore: block robots.txt on all mfes, idas, and edxapp
2 parents 06ac394 + 9727a4a commit 427380f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
All notable changes to this project will be documented in this file.
55
Add any new changes to the top (right below this line).
66

7+
- 2025-12-05
8+
- Set `NGINX_ROBOT_RULES` to a default of block everything.
9+
710
- 2025-09-26
811
- Moved `EDXAPP_FEATURES_DEFAULT` and `EDXAPP_FEATURES_EXTRA` into top-level settings.
912

playbooks/roles/nginx/defaults/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ nginx_ecommerce_gunicorn_hosts:
190190
nginx_credentails_gunicorn_hosts:
191191
- 127.0.0.1
192192

193-
NGINX_ROBOT_RULES: [ ]
193+
# Block all crawlers by default
194+
NGINX_ROBOT_RULES:
195+
- agent: "*"
196+
disallow: "/"
194197
NGINX_EDXAPP_EMBARGO_CIDRS: []
195198
NGINX_P3P_MESSAGE: 'CP="Open edX does not have a P3P policy."'
196199

0 commit comments

Comments
 (0)