Skip to content

Commit

Permalink
🔧(fun) avoid search indexing for attestations files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wilbrdt committed Jan 10, 2025
1 parent 236ac57 commit 9a37aa7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Avoid indexing of attestations files with a nginx rule

## [6.23.0] - 2024-10-01

### Changed
Expand Down
1 change: 1 addition & 0 deletions apps/edxapp/templates/services/nginx/configs/lms.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ server {
access_log off;
expires {{ edxapp_nginx_lms_media_cache_expires }};
add_header Cache-Control public;
add_header X-Robots-Tag "noindex, nofollow";
root /data/media;
try_files /$file =404;
}
Expand Down
1 change: 1 addition & 0 deletions apps/edxec/templates/services/nginx/configs/edxec.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ server {
access_log off;
expires {{ edxec_nginx_media_cache_expires }};
add_header Cache-Control public;
add_header X-Robots-Tag "noindex, nofollow";
root /data/media/;
try_files /$file =404;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ server {
access_log off;
expires {{ richie_nginx_media_cache_expires }};
add_header Cache-Control public;
add_header X-Robots-Tag "noindex, nofollow";
root /data/media;
try_files /$file =404;
}
Expand Down

0 comments on commit 9a37aa7

Please sign in to comment.