Skip to content

Commit e30d111

Browse files
committed
v8.15
- DietPi-Software | Change X-Robots-Tag header from "none" to "noindex, nofollow": nextcloud/server#36689
1 parent a3af351 commit e30d111

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.conf/dps_114/lighttpd.nextcloud.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
2525
"X-Download-Options" => "noopen",
2626
"X-Frame-Options" => "SAMEORIGIN",
2727
"X-Permitted-Cross-Domain-Policies" => "none",
28-
"X-Robots-Tag" => "none",
28+
"X-Robots-Tag" => "noindex, nofollow",
2929
"X-XSS-Protection" => "1; mode=block",
3030
"Cache-Control" => "public, max-age=15778463",
3131
)

.conf/dps_114/nginx.nextcloud.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ location ^~ /nextcloud {
2828
add_header X-Download-Options "noopen" always;
2929
add_header X-Frame-Options "SAMEORIGIN" always;
3030
add_header X-Permitted-Cross-Domain-Policies "none" always;
31-
add_header X-Robots-Tag "none" always;
31+
add_header X-Robots-Tag "noindex, nofollow" always;
3232
add_header X-XSS-Protection "1; mode=block" always;
3333

3434
# Remove X-Powered-By, which is an information leak

.conf/dps_47/lighttpd.owncloud.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $HTTP["url"] =~ "^/owncloud($|/)" {
1818
"X-Frame-Options" => "SAMEORIGIN",
1919
"X-Content-Type-Options" => "nosniff",
2020
"X-XSS-Protection" => "1; mode=block",
21-
"X-Robots-Tag" => "none",
21+
"X-Robots-Tag" => "noindex, nofollow",
2222
"X-Download-Options" => "noopen",
2323
"X-Permitted-Cross-Domain-Policies" => "none",
2424
"Referrer-Policy" => "no-referrer",

.conf/dps_47/nginx.owncloud.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ location ^~ /owncloud {
1010
add_header X-Content-Type-Options nosniff always;
1111
add_header X-Frame-Options "SAMEORIGIN" always;
1212
add_header X-XSS-Protection "1; mode=block" always;
13-
add_header X-Robots-Tag none always;
13+
add_header X-Robots-Tag "noindex, nofollow" always;
1414
add_header X-Download-Options noopen always;
1515
add_header X-Permitted-Cross-Domain-Policies none always;
1616
add_header Referrer-Policy no-referrer always;

.conf/dps_93/lighttpd.pihole.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $HTTP["url"] =~ "^(/html)?/admin/" {
1313
"X-Content-Type-Options" => "nosniff",
1414
"X-Frame-Options" => "deny",
1515
"X-XSS-Protection" => "1; mode=block",
16-
"X-Robots-Tag" => "none",
16+
"X-Robots-Tag" => "noindex, nofollow",
1717
"X-Permitted-Cross-Domain-Policies" => "none",
1818
"Referrer-Policy" => "same-origin",
1919
"Content-Security-Policy" => "default-src 'self' 'unsafe-inline'"

.conf/dps_93/nginx.pihole.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ location ~ ^(?:/html|)/admin(?:$|/) {
1616
set $frame_options "deny";
1717
add_header X-Frame-Options "$frame_option";
1818
add_header X-XSS-Protection "1; mode=block";
19-
add_header X-Robots-Tag "none";
19+
add_header X-Robots-Tag "noindex, nofollow";
2020
add_header X-Permitted-Cross-Domain-Policies "none";
2121
add_header Referrer-Policy "same-origin";
2222
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline'";

dietpi/dietpi-software

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3474,7 +3474,7 @@ TraceEnable Off
34743474
Header set X-Content-Type-Options "nosniff"
34753475
Header set X-Frame-Options "sameorigin"
34763476
Header set X-XSS-Protection "1; mode=block"
3477-
Header set X-Robots-Tag "none"
3477+
Header set X-Robots-Tag "noindex, nofollow"
34783478
Header set X-Permitted-Cross-Domain-Policies "none"
34793479
Header set Referrer-Policy "no-referrer"
34803480
_EOF_

0 commit comments

Comments
 (0)