googlebot und besucherzähler auf mysqlbasis-

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • googlebot und besucherzähler auf mysqlbasis-

    Hallo,
    ich hab einen Zähler auf mysqlbasis eingerichtet. Nun möchte ich nicht, dass googlebot anfragen mitgezählt werden

    Wie mache ich das. Oder ist das überhaupt nötig,

  • #2
    ok hab eine lösung

    PHP Code:
    if($_GET['act'] == "newsearch")
      {
       
    $_SESSION['kategorie'] = $schluessel;
       
    $host gethostbyaddr($_SERVER['REMOTE_ADDR']);
       
    $domain explode("."$host); $domain_array count($domain)-2;
       if(
    $domain["$domain_array"] != "googlebot"){
       
    $sql "UPDATE
               count_kategorie
               SET
               number_kategorie = number_kategorie + 1
             WHERE
               id = 1;"
    ;
    mysql_query($sql) OR die(mysql_error());
    }
      } 

    Comment


    • #3
      steht auch im http_user_agent.

      Comment

      Working...
      X