2012-10-25 24 views
1

我幫助維護一個教會的網站,我們剛剛注意到我們的Google結果有被欺騙。結果和鏈接指向教會的網站,但文字描述都是錯誤的。我已經檢查了網站的實際代碼(頭部複製如下),沒有什麼不妥。我們的服務器上沒有奇怪的文件,網站本身也沒有任何問題。谷歌搜索結果包含與網站的鏈接,但標題爲香菸廣告。代碼沒有改變

我的問題是如何可能的,有什麼方法來糾正它?

Google Results Screen Shot

<?php 
/** 
* The Header for our theme. 
* 
* Displays all of the <head> section and everything up till <div id="main"> 
* 
* @package WordPress 
* @subpackage Twenty_Ten 
* @since Twenty Ten 1.0 
*/ 

global $fumco; 
?><!DOCTYPE html> 
<html <?php language_attributes(); ?>> 
<head> 
<meta charset="<?php bloginfo('charset'); ?>" /> 
<title><?php 
    /* 
    * Print the <title> tag based on what is being viewed. 
    */ 
    global $page, $paged; 

    wp_title('|', true, 'right'); 

    // Add the blog name. 
    bloginfo('name'); 

    // Add the blog description for the home/front page. 
    $site_description = get_bloginfo('description', 'display'); 
    if ($site_description && (is_home() || is_front_page())) 
     echo " | $site_description"; 

    // Add a page number if necessary: 
    if ($paged >= 2 || $page >= 2) 
     echo ' | ' . sprintf(__('Page %s', 'twentyten'), max($paged, $page)); 

    ?></title> 
<link rel="profile" href="http://gmpg.org/xfn/11" /> 
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" /> 
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> 
<?php 
    /* We add some JavaScript to pages with the comment form 
    * to support sites with threaded comments (when in use). 
    */ 
    if (is_singular() && get_option('thread_comments')) 
     wp_enqueue_script('comment-reply'); 

    /* Always have wp_head() just before the closing </head> 
    * tag of your theme, or you will break many plugins, which 
    * generally use this hook to add elements to <head> such 
    * as styles, scripts, and meta tags. 
    */ 
    wp_head(); 
?> 

<script src="<?php bloginfo('template_directory');?>/js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script> 

    <!-- Slider script --> 
    <script src="<?php bloginfo('template_directory');?>/js/scripts.js" type="text/javascript" charset="utf-8"></script> 

    <!-- Home page tabs --> 
    <script type="text/javascript" charset="utf-8"> 
    $(function() { 
     var tabContainers = $('div.tabs > div'); 
     tabContainers.hide().filter(':first').show(); 

     $('div.tabs ul.tabNavigation a').click(function() { 
     tabContainers.hide(); 
     tabContainers.filter(this.hash).show(); 
     $('div.tabs ul.tabNavigation a').removeClass('selected'); 
     $(this).addClass('selected'); 
     return false; 
     }).filter(':first').click(); 
    }); 
    </script> 

    <!-- Script for TypeKit font implementation --> 
    <script type="text/javascript" src="http://use.typekit.com/kgp1dfc.js"></script> 
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script> 


    <!-- Facebook Wall Feeds --> 
    <script type="text/javascript" src="<?php bloginfo('template_directory');?>/js/jquery.neosmart.fb.wall.js"></script> 
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory');?>/js/jquery.neosmart.fb.wall.css" media="screen"> 



    <!-- Scripts for implementing drop down menus --> 
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory');?>/css/superfish.css" media="screen"> 
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory');?>/css/superfish-navbar.css" media="screen"> 
    <script type="text/javascript" src="<?php bloginfo('template_directory');?>/js/hoverIntent.js"></script> 
    <script type="text/javascript" src="<?php bloginfo('template_directory');?>/js/superfish.js"></script> 

    <script type="text/javascript"> 
    $.fn.setAllToMaxHeight = function(){ 
     return this.height(Math.max.apply(this, $.map(this , function(e){ 
     return $(e).height() 
     }))); 
    } 

    // initialise plugins 
    jQuery(function(){ 
    jQuery('ul.sf-menu').superfish(); 

    adjustNavigation(); 

    $('.menu-col').setAllToMaxHeight(); 

    if ($('.accordion').length > 0) { 
     $('.accordion .ac-header').click(function() { 
     panel = $(this).parents('.ac-panel'); 
     $('.ac-content', panel).slideToggle(); 
     }) 
    } 

    jQuery('.twitter-feeds a').attr('target', '_blank'); 

     $("#frmsga").submit(function() { 
      var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i; 
      $("#txtname, #txtemail").removeClass('error-input'); 
      var is_valid = true; 
      if ($("#txtname").val()==""){ 
       $("#txtname").addClass('error-input').focus(); 
       return false; 
      } 

      if (emailfilter.test($("#txtemail").val())==false) { 
       $("#txtemail").addClass('error-input').focus(); 
       return false; 
      } 
      return true; 
     }); 
    }); 

    $(window).resize(function() { 
    adjustNavigation(); 
    }); 

    function adjustNavigation() { 
    var padLeft = jQuery('#site-title').offset().left; 
    jQuery('ul.sf-menu li:eq(0)').css('margin-left',padLeft+'px'); 

    jQuery('ul.sf-menu > li').each(function(index, value) { 
     jQuery('li:eq(0)', this).css({ 
     'margin-left':padLeft+'px' 
     }); 

     jQuery('li:eq(0) a', this).addClass('mnu-first'); 
    }); 
    } 

    function sga_submit() { 
    var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i; 
    $("#txtname, #txtemail").removeClass('error-input'); 
    var is_valid = true; 
    if ($("#txtname").val()==""){ 
     $("#txtname").addClass('error-input').focus(); 
     is_valid = false; 
    } 

    if (emailfilter.test($("#txtemail").val())==false) { 
     $("#txtemail").addClass('error-input').focus(); 
     is_valid = false 
    } 

    return is_valid; 
    } 
    </script> 

    <style type="text/css"> 
    .single .<?php echo $fumco->news_page_id;?> {background-position: 0 -30px;} 
    .single .<?php echo $fumco->news_page_id;?> a {color: #b27262;} 
    </style> 

</head> 
+0

你有任何搜索引擎優化插件? – maiorano84

回答

1

有可能你的網站得到了某種程度上砍死。看看緩存副本,谷歌有:http://webcache.googleusercontent.com/search?q=cache:S79-C5g4-2gJ:firstchurchorlando.org/+&cd=1&hl=en&ct=clnk&gl=us

你不僅會看到噸的關鍵字和你的標題標籤發生了變化,但這裏是什麼是有趣的,可能是問題的根源:

<!-- All in One SEO Pack 1.6.15.2 by Michael Torbert of Semper Fi Web Design[82,129] --> 
<meta name="description" content="Duty Free Philippines Sale Items, Lucky Strike In Az @ Genuine Duty Free Cigarettes Online" /> 
<meta name="keywords" content="Duty, Free, Philippines, Sale, Items, Lucky, Strike, In, Az, " /> 

調查所有在一個搜索引擎優化包插件,更改所有的網站密碼...應該解決您的問題

+1

還有一件事,我會改變你的FTP憑據,以確保你...同時,確保你從一個可靠的供應商/下載得到你的主題...我已經看到免費主題中的惡意代碼的問題,而我不是唯一一個:http://wpmu.org/why-you-should-never-search-for-free-wordpress-themes-in-google-or-anywhere-else/ –

+0

嗯,好的。那看起來像那個問題。一切都是正確的,也許有人在更新插件/ wordpress之前得到了?由於目前網站上的所有內容都是正確的,我們是否必須等待Google重新抓取網站並更新其記錄? 而這個主題是我們僱用的一個自定義的主題,所以如果主題的代碼不正確,這將是一個更大的問題。 – Justin

+1

該副本從今天開始緩存,並且問題肯定不是固定的;無論誰攻擊它,它都會設置爲在檢測到爬蟲用戶代理時顯示該內容。在Chrome中,通過按F12打開開發人員工具。在右下角會有一個齒輪,點擊它,然後在用戶代理下拉選擇其他...然後將其放入,您將看到正在輸出的內容,它仍然存在!:Mozilla/5.0(compatible; Googlebot /2.1; + http://www.google.com/bot.html) –

相關問題