Verfasst: 25.12.2005 15:24
danke jetzt funktioniert alles prima!
bye

bye

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
bots verfolgen grundsätzlich alle vorhandenen links - scheinbar findet sich bei dir auf der seite (oder sonst irgendwo in den weiten des www) ein link zu t=0 - eine auswertung der logfiles kann helfen, den entsprechenden referer ausfindig zu machen.Wie kann das sein? Was habe ich falsch gemacht?
Code: Alles auswählen
/* dynamische Metatags */
if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) )
{
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
}
else if ( isset($HTTP_GET_VARS['topic']) )
{
$topic_id = intval($HTTP_GET_VARS['topic']);
}
if ( $topic_id )
{
$sql = "SELECT c.cat_title, f.forum_name, t.topic_title
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
WHERE f.forum_id = t.forum_id
AND c.cat_id = f.cat_id
AND t.topic_id = $topic_id";
if( ($result = $db->sql_query($sql)) )
{
if ( $meta_row = $db->sql_fetchrow($result) )
{
$meta_description = '<meta name="description" content="' . $meta_row['cat_title'] . ' :: ' . $meta_row['forum_name'] . ' :: ' . $meta_row['topic_title'] . '">';
}
}
$sql = "SELECT w.word_text
FROM " . TOPICS_TABLE . " t, " . SEARCH_MATCH_TABLE . " m, " . SEARCH_WORD_TABLE . " w
WHERE t.topic_first_post_id = m.post_id
AND m.word_id = w.word_id
AND t.topic_id = $topic_id";
if( ($result = $db->sql_query($sql)) )
{
$meta_keywords = '';
while ( $meta_row = $db->sql_fetchrow($result) )
{
$meta_keywords .= ($meta_keywords=='') ? $meta_row['word_text'] : ',' . $meta_row['word_text'];
}
$meta_keywords = '<meta name="keywords" content="' . $meta_keywords . '">';
}
}
Code: Alles auswählen
02/13/2006 - 10:14:59 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ../[b]viewtopic.php?t=0 [/b]
02/13/2006 - 08:40:48 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../index.php
02/13/2006 - 08:40:45 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../index.php
02/13/2006 - 08:37:50 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ../[b]viewtopic.php?t=0 [/b]
02/13/2006 - 07:41:54 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../index.php
02/13/2006 - 07:41:51 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../index.php
02/13/2006 - 07:07:14 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) [b]../viewtopic.php?t=0 [/b]
02/13/2006 - 05:24:26 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ../viewtopic.php?t=0
02/13/2006 - 05:14:27 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../index.php
02/13/2006 - 03:19:02 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ../[b]viewtopic.php?t=0 [/b]
02/13/2006 - 02:53:28 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../viewforum.php?f=24
02/13/2006 - 02:42:33 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ../index.php
02/13/2006 - 01:14:51 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../index.php
02/13/2006 - 01:10:01 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../index.php
02/13/2006 - 01:09:58 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ../index.php
02/13/2006 - 01:07:19 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ../[b]viewtopic.php?t=0 [/b]
02/13/2006 - 12:39:55 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ../[b]viewtopic.php?t=0 [/b]
02/13/2006 - 11:47:36 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ../[b]viewtopic.php?t=0[/b]
Code: Alles auswählen
<meta name="date" content="2006-02-16T14:58:08+01:00" />
<meta name="keywords" content="weltraum, lügen, Ölsucher, zuspruchs, zurück, zigtausendfach, wisnewski, weg, warens, wahrscheinlich, vorgaukeln, verschwinden, vermutlich, vermarkten, verlage, unterseeinschen, tsunami, theorien, sprengungen, sowas, sonare, sicherlich, sentiments, schnell, schlau, scheinbar, sachen, sachbücher, russen, regel, prominent, plazierten, petitesse, objektivität, mondlandung, lösung, ließ, kleiner, kapitalisieren, juden, ja, israelische, iran, internets, internet, inszeniert, idee, herr, heiseforum, große, gießen, geringeren, geld, gehandelte, gefunden, gefilde, frage, foren, findet, finden, filmstudio, exkurs, erfreut, einschlägigen, durchgekauten, drucken, dioe, deutschland, debei, cia, buchform, buch, bröckerskonkurrent, bröckers, blöd, bilder, beißt, ausgelöst, atomversuche, atombewaffnete, araber, antiamerikanischen, antiamerikana, anerkannten, amis, amerikanischer, amerikaner, alleseits, allerwertesten, aeh, abteilung, 11lügen, 11" />
<meta name="author" content="etre_libre" />
<meta name="description" content="Konjunktiv 2 :: Rubriken :: Sternchen :: Lügen im Weltraum" />
Code: Alles auswählen
// META-Tag-Generierungs-MOD - Anfang
if ( isset($HTTP_GET_VARS[POST_POST_URL]) )
{
$post_id = intval($HTTP_GET_VARS[POST_POST_URL]);
}
else if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) )
{
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
}
else if ( isset($HTTP_GET_VARS['topic']) )
{
$topic_id = intval($HTTP_GET_VARS['topic']);
}
if ( !$userdata['session_logged_in'] && ( $post_id || $topic_id ) )
// if ( areyouabot($_SERVER["HTTP_USER_AGENT"], TRUE) == 1 && ( $post_id || $topic_id ) )
{
if ( $post_id )
{
$sql = "SELECT pt.post_subject, p.post_username, p.post_time, u.username, u.user_id, c.cat_title, f.forum_name, t.topic_title
FROM " . POSTS_TABLE . " p, " . USERS_TABLE ." u," . POSTS_TEXT_TABLE . " pt, " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
WHERE f.forum_id = t.forum_id
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
AND c.cat_id = f.cat_id
AND t.topic_id = p.topic_id
AND p.post_id = $post_id";
if( ($result = $db->sql_query($sql)) )
{
if ( $meta_row = $db->sql_fetchrow($result) )
{
$meta_description = '<meta name="description" content="' . $board_config['sitename'] . ' :: ' . $meta_row['cat_title'] . ' :: ' . $meta_row['forum_name'] . ' :: ' . $meta_row['topic_title'];
if ($meta_row['post_subject'] && ($meta_row['post_subject'] != $meta_row['topic_title']) )
{
$meta_description .= ' :: ' . $meta_row['post_subject'];
}
$meta_description .= '" />';
if ( $meta_row['post_username'] )
{
$meta_author = '<meta name="author" content="' . $meta_row['post_username'] . '" />';
}
else
{
$meta_author = '<meta name="author" content="' . $meta_row['username'] . '" />';
}
$meta_date = '<meta name="date" content="' . date("c", $meta_row['post_time']) . '" />';
}
}
$sql = "SELECT w.word_text
FROM " . POSTS_TABLE . " p, " . SEARCH_MATCH_TABLE . " m, " . SEARCH_WORD_TABLE . " w
WHERE p.post_id = m.post_id
AND m.word_id = w.word_id
AND p.post_id = $post_id";
if( ($result = $db->sql_query($sql)) )
{
$meta_keywords = '';
while ( $meta_row = $db->sql_fetchrow($result) )
{
$meta_keywords .= ($meta_keywords=='') ? $meta_row['word_text'] : ', ' . $meta_row['word_text'];
}
$meta_keywords = '<meta name="keywords" content="' . $meta_keywords . '" />';
}
}
else if ( $topic_id )
{
$sql = "SELECT c.cat_title, f.forum_name, t.topic_title, p.post_username, p2.post_time, u.username, u.user_id
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c, " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TABLE . " p2
WHERE f.forum_id = t.forum_id
AND p.post_id = t.topic_first_post_id
AND u.user_id = p.poster_id
AND c.cat_id = f.cat_id
AND t.topic_id = $topic_id
AND p2.post_id = t.topic_last_post_id";
if( ($result = $db->sql_query($sql)) )
{
if ( $meta_row = $db->sql_fetchrow($result) )
{
$meta_description = '<meta name="description" content="' . $board_config['sitename'] . ' :: ' . $meta_row['cat_title'] . ' :: ' . $meta_row['forum_name'] . ' :: ' . $meta_row['topic_title'] . '" />';
if ( $meta_row['post_username'] )
{
$meta_author = '<meta name="author" content="' . $meta_row['post_username'] . '" />';
}
else
{
$meta_author = '<meta name="author" content="' . $meta_row['username'] . '" />';
}
$meta_date = '<meta name="date" content="' . date("c", $meta_row['post_time']) . '" />';
}
}
$sql = "SELECT w.word_text
FROM " . TOPICS_TABLE . " t, " . SEARCH_MATCH_TABLE . " m, " . SEARCH_WORD_TABLE . " w
WHERE t.topic_first_post_id = m.post_id
AND m.word_id = w.word_id
AND t.topic_id = $topic_id";
if( ($result = $db->sql_query($sql)) )
{
$meta_keywords = '';
while ( $meta_row = $db->sql_fetchrow($result) )
{
$meta_keywords .= ($meta_keywords=='') ? $meta_row['word_text'] : ', ' . $meta_row['word_text'];
}
$meta_keywords = '<meta name="keywords" content="' . $meta_keywords . '" />';
}
}
}
else
{
$meta_description = $lang['META_DESCRIPTION'];
$meta_keywords = $lang['META_KEYWORDS'];
$meta_author = $lang['META_AUTHOR'];
$meta_date = '';
}
// META-Tag-Generierungs-MOD - Ende