Skip to content

Commit 9a37aa7

Browse files
committed
🔧(fun) avoid search indexing for attestations files
As the media/attestations pdf files contain users PII, they should not be indexed by search engines. Adding a nginx rule to add a robots tag header.
1 parent 236ac57 commit 9a37aa7

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Versioning](http://semver.org/spec/v2.0.0.html).
88

99
## Unreleased
1010

11+
### Changed
12+
13+
- Avoid indexing of attestations files with a nginx rule
14+
1115
## [6.23.0] - 2024-10-01
1216

1317
### Changed

apps/edxapp/templates/services/nginx/configs/lms.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ server {
100100
access_log off;
101101
expires {{ edxapp_nginx_lms_media_cache_expires }};
102102
add_header Cache-Control public;
103+
add_header X-Robots-Tag "noindex, nofollow";
103104
root /data/media;
104105
try_files /$file =404;
105106
}

apps/edxec/templates/services/nginx/configs/edxec.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ server {
8181
access_log off;
8282
expires {{ edxec_nginx_media_cache_expires }};
8383
add_header Cache-Control public;
84+
add_header X-Robots-Tag "noindex, nofollow";
8485
root /data/media/;
8586
try_files /$file =404;
8687
}

apps/richie/templates/services/nginx/configs/richie.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ server {
7373
access_log off;
7474
expires {{ richie_nginx_media_cache_expires }};
7575
add_header Cache-Control public;
76+
add_header X-Robots-Tag "noindex, nofollow";
7677
root /data/media;
7778
try_files /$file =404;
7879
}

0 commit comments

Comments
 (0)