Nofollow on stats.

This commit is contained in:
severak 2020-03-03 14:21:23 +01:00
parent 73ea6802a0
commit 66985c842e
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<p>an experimental non-tracking web counter/analytics inspired by <a href="https://plausible.io/">plausible.io</a> and <a href="https://simpleanalytics.com/">Simple analytics</a></p>
<p>Take a look at <a href="stats.php">our stats</a>.</p>
<p>Take a look at <a href="stats.php" rel="nofollow">our stats</a>.</p>
<h2>What do we collect?</h2>

View File

@ -160,7 +160,7 @@ ORDER BY visits DESC');
if (count($byPaths)) {
echo '<h2>Top '.count($byPaths).' visited pages</h2>';
foreach ($byPaths as $page) {
echo '<div><a href="//' . $site['host'] . $page['path'] . '">'.$page['path'].'</a>';
echo '<div><a href="//' . $site['host'] . $page['path'] . '" rel="nofollow">'.$page['path'].'</a>';
echo ' ' . $page['visits'] . '× - ' . pct($page['visits'], $totalVisits) . '%<div class="progress"><div style="width: '.pct($page['visits'], $totalVisits).'%"></div></div>';
}
}
@ -207,7 +207,7 @@ if (count($byBots)) {
echo '<table><tr><th>Site</th><th>domain</th><th>#visits</th></tr>';
foreach ($sites as $site) {
echo '<tr><td>'.$site['label'].'</td><td>'.$site['host'].'</td><td>';
if ($site['stats_public']) echo '<a href="stats.php?for=' . $site['host'] . '">';
if ($site['stats_public']) echo '<a href="stats.php?for=' . $site['host'] . '" rel="nofollow">';
echo $site['visits'];
if ($site['stats_public']) echo '</a>';
echo '</td></tr>';