diff options
author | 2024-04-21 00:28:16 -0700 | |
---|---|---|
committer | 2024-04-21 00:28:16 -0700 | |
commit | b5e0e85f5d325664bd1b3d6d1bd17efa50017644 (patch) | |
tree | ee1aecb37ca8d5f8ec9cf461c79b00890d4c26d3 /data/config.default.php | |
parent | ab2657e35190f8c1d8e495cf167ce6c48f91d8cb (diff) | |
download | scuttle-b5e0e85f5d325664bd1b3d6d1bd17efa50017644.tar.gz scuttle-b5e0e85f5d325664bd1b3d6d1bd17efa50017644.zip |
feat: Add options to include noreferrer and noopener in links
- ‘noreferrer’ prevents the Referer header from being sent to the server the
link points at when the link is clicked on.
- ‘noopener’ prevents the ‘window.opener’ property from being set when the link
is clicked on.
Diffstat (limited to 'data/config.default.php')
-rw-r--r-- | data/config.default.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/data/config.default.php b/data/config.default.php index bb9eddb..4679196 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -364,6 +364,19 @@ $longdate = 'j F Y'; $nofollow = true; /** + * Include rel="noreferer" attribute on bookmark links to prevent them from + * specifying your site as the one that referred to the page. + */ +$noreferrer = true; + +/** + * Include rel="noopener" attribute on bookmark links to prevent them from + * giving the opening page access to your site through the window.opener + * property. + */ +$noopener = true; + +/** * Default number of bookmarks per page. * -1 means no limit. * |