ThaiSEOBoard.com

ความรู้ทั่วไป => Search Engine Optimization => ข้อความที่เริ่มโดย: benze ที่ 10 พฤศจิกายน 2006, 22:48:01



หัวข้อ: ทำไงให้ msnbot มันวิ่งมาบ้างอะ ทั้งๆ ที่ addurl ไปแล้วอะ.
เริ่มหัวข้อโดย: benze ที่ 10 พฤศจิกายน 2006, 22:48:01
รู้สึก  msnbot  นี่มันมาครั้งเดียวแล้วมันก็ไม่มาอีกเลยอะ
ดูจากรูป

(http://img297.imageshack.us/img297/3905/indexhw8.jpg)


หัวข้อ: ทำไงให้ msnbot มันวิ่งมาบ้างอะ ทั้งๆ ที่ addurl ไปแล้วอะ.
เริ่มหัวข้อโดย: DaY ที่ 11 พฤศจิกายน 2006, 00:43:44
เว็บที่ว่า ติด adsense ใช่ไหมล่ะครับ?

ถ้าใช่ก้อเป็นคำตอบสุดท๊ายยยยยย


หัวข้อ: ทำไงให้ msnbot มันวิ่งมาบ้างอะ ทั้งๆ ที่ addurl ไปแล้วอะ.
เริ่มหัวข้อโดย: benze ที่ 11 พฤศจิกายน 2006, 00:52:20
msn  ไม่ถูกกับ  google  นี่เอง   :D

สงสัยต้องลองใช้  adsense  cloaker  นะเนี่ย


หัวข้อ: ทำไงให้ msnbot มันวิ่งมาบ้างอะ ทั้งๆ ที่ addurl ไปแล้วอะ.
เริ่มหัวข้อโดย: DaY ที่ 11 พฤศจิกายน 2006, 01:00:17
"Adsense Cloaker even lets you pick and choose which robots you want to hide  from or show the Adsense code to"

The adsense cloaker scripts tracks the IP addresses of the following popular search engine robots:

1. Yahoo
2. Google
3. MSN
4. Altavista
5. Teoma
6. Ask Jeeves
7. Lycos
8. Wisenut

http://www.adsensecloaker.com/

ไม่ตรงประเด็น แต่ผมว่าน่าลองนะครับ


หัวข้อ: ทำไงให้ msnbot มันวิ่งมาบ้างอะ ทั้งๆ ที่ addurl ไปแล้วอะ.
เริ่มหัวข้อโดย: iamnewbies ที่ 11 พฤศจิกายน 2006, 07:47:00
เลือก เอา adsense ออกจากระบบให้หมด เวลา คุณ Bot Yahoo กะ MSN bot มาเยี่บมใช่ปะ อิอิ


หัวข้อ: ทำไงให้ msnbot มันวิ่งมาบ้างอะ ทั้งๆ ที่ addurl ไปแล้วอะ.
เริ่มหัวข้อโดย: iamnewbies ที่ 11 พฤศจิกายน 2006, 08:23:12
ลองเอาโค๊ดดัดแปลงนี้ไปใช้ดูจิ

แบบ A1  เอาโค๊ดใส่ แล้ว include ไฟล์ adsense  
แบบ B2   include file adsense แล้ว เอา โค๊ดใส่ใน adsense ข้างนอก  (น่าจะดีที่สุด)
แบบ C3  แบบ เอาทั้งหมดใส่ไว้ในหน้าเว็บทั้งหมดเลย (ขยะจะเยอะหน่อย)

แต่ไม่แน่ใจ ถ้าใครใช้ adbloger ที่ใช้ล็อก adsense เวลาโดน คลิก bom อะ
ว่ามันจะใช้งานได้หรือเปล่านะ


แบบ B2 ผมว่าดีที่สุด เพราะเขีนนโค๊ดใน html น้อย แล้วแยก ตัว adsese ออกมาข้างนอกเลย


แบบ A1

เอาโค๊ดใส่ไว้ในไฟล์ index หรือ ไฟล์ webpage เลย

index.php

โค๊ด:


<?php
/* Use this to start a session only if the UA is *not* at search engine
to avoid duplicate content issues with url propagation of SID's */

$searchengines=array&#40;"Google", "Fast", "Slurp", "Ink", "ia_archiver", "Atomz", "Scooter"&#41;;
$is_search_engine=0;
foreach&
#40;$searchengines as $key => $val&#41; &#123;
if&#40;strstr&#40;"$HTTP_USER_AGENT", $val&#41;&#41; &#123;
$is_search_engine++;
&
#125;
&#125;

if&#40;$is_search_engine==0&#41; &#123; // not a search engine

/* You can put anything in here that needs to be
hidden from searchengines */

include &#40;"adsense1.html"&#41;;

&#125; else &#123; // Is a search engine

/* Put anything you want only for searchengines in here */

include &#40;"blank.html"&#41;;

&#125; 
?>





adsense1.html
โค๊ด:


<script type="text/javascript"><!--
google_ad_client = "ca-test";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>





แบบ B2

โค๊ด:


include ("adsense.php");






adsense.php

โค๊ด:


<?php
/* Use this to start a session only if the UA is *not* at search engine
to avoid duplicate content issues with url propagation of SID's */

$searchengines=array&#40;"Google", "Fast", "Slurp", "Ink", "ia_archiver", "Atomz", "Scooter"&#41;;
$is_search_engine=0;
foreach&
#40;$searchengines as $key => $val&#41; &#123;
if&#40;strstr&#40;"$HTTP_USER_AGENT", $val&#41;&#41; &#123;
$is_search_engine++;
&
#125;
&#125;

if&#40;$is_search_engine==0&#41; &#123; // not a search engine

/* You can put anything in here that needs to be
hidden from searchengines */


print <<<END

<script type="text/javascript"><!--
google_ad_client = "ca-test";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http&#58;//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

END;


&
#125; else &#123; // Is a search engine

/* Put anything you want only for searchengines in here */

print <<<EOF

<!---- blank / noting ---->

EOF;



&
#125; 
?>




หัวข้อ: ทำไงให้ msnbot มันวิ่งมาบ้างอะ ทั้งๆ ที่ addurl ไปแล้วอะ.
เริ่มหัวข้อโดย: iamnewbies ที่ 11 พฤศจิกายน 2006, 09:10:54
ทดสอบแล้วครับ โค๊ด เห่ยๆ ของผม (ที่ไปก็อปมา) ใช้งานได้จริงๆ

ลองดูครับ

http://agent.askek.com/