A free, self-hostable news aggregator…
meta referrer origin
Alexandre Alapetitedccc2a843551
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtmlindex 6906fa05f..7fdc01241 100644--- a/app/layout/layout.phtml+++ b/app/layout/layout.phtml@@ -41,6 +41,8 @@$url_rss['a'] = 'rss';?><link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Minz_Url::display($url_rss); ?>" />+<?php } if (!FreshRSS_Context::$system_conf->allow_referrer) { ?>+ <meta name="referrer" content="origin" /><?php } if (FreshRSS_Context::$system_conf->allow_robots) { ?><meta name="description" content="<?php echo htmlspecialchars(FreshRSS_Context::$name . ' | ' . FreshRSS_Context::$description, ENT_COMPAT, 'UTF-8'); ?>" /><?php } else { ?>diff --git a/data/config.default.php b/data/config.default.phpindex be3fa8ae2..af1482d03 100644--- a/data/config.default.php+++ b/data/config.default.php@@ -66,6 +66,9 @@ return array(# Allow or not Web robots (e.g. search engines) in HTML headers.'allow_robots' => false,+ # If true does nothing, if false restricts HTTP Referer via: meta referrer origin+ 'allow_referrer' => false,+'limits' => array(# Duration in seconds of the SimplePie cache,