Browse Source

Nofollow on stats.

master
severak 2 years ago
parent
commit
66985c842e
  1. 2
      index.html
  2. 4
      stats.php

2
index.html

@ -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>

4
stats.php

@ -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>';

Loading…
Cancel
Save