Add nofollow on poison links. So, normal crawler won't go on this pages. xorg/0.9.17
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 31 Oct 2008 12:37:06 +0000 (13:37 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 31 Oct 2008 12:37:06 +0000 (13:37 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/poison.php
templates/skin/common.footer.tpl
templates/xnet/skin.tpl

index 618ed35..612c81a 100644 (file)
@@ -78,7 +78,7 @@ class PoisonModule extends PLModule
         foreach ($emails as $email) {
             echo "<a href=\"mailto:$email\" >$email</a>". "\n";
         }
-        echo '<a href="' . $globals->baseurl . '/pem/' . md5($seed) . '">suite</a></body></html>';
+        echo '<a rel="nofollow" href="' . $globals->baseurl . '/pem/' . md5($seed) . '">suite</a></body></html>';
         exit;
     }
 
index a2560ff..0959bc6 100644 (file)
@@ -35,8 +35,8 @@
 {/if}
 </div>
 <div class="pem" style="display: none">
-  <a href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/200">Liste1</a>
-  <a href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/400">Liste2</a>
+  <a rel="nofollow" href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/200">Liste1</a>
+  <a rel="nofollow" href="{$globals->baseurl}/pe/{$platal->pl_self()|replace:'/':'_'}/400">Liste2</a>
   <!--
   {poison count=20}
   -->
index 8a9a3a1..fd94dda 100644 (file)
           <br />
           Plat/al {#globals.version#} - © Copyright 2000-2008 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
           <div class="pem">
-            <a href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/200">Liste1</a>
-            <a href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/400">Liste2</a>
+            <a rel="nofollow" href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/200">Liste1</a>
+            <a rel="nofollow" href="{$globals->baseurl}/pe/{$platal->pl_self()|replace:'/':'_'}/400">Liste2</a>
             <!--
             {poison count=20}
             -->