<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bingbot &#8211; 馬修 IT</title>
	<atom:link href="https://blog.ocam.live/archives/tag/bingbot/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.ocam.live</link>
	<description>生活中所接觸各種電腦及網路問題與懷舊模擬器的專業問題解決與新資訊介紹的網站</description>
	<lastBuildDate>Fri, 26 Dec 2025 07:56:02 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://blog.ocam.live/wp-content/uploads/2025/03/cropped-logo-1-300x300.png</url>
	<title>bingbot &#8211; 馬修 IT</title>
	<link>https://blog.ocam.live</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>為什麼 Bingbot 一直用隨機搜尋字詞來灌爆 WordPress 網站</title>
		<link>https://blog.ocam.live/archives/4729</link>
		
		<dc:creator><![CDATA[blog.ocam.live]]></dc:creator>
		<pubDate>Fri, 26 Dec 2025 07:20:08 +0000</pubDate>
				<category><![CDATA[IT 日常]]></category>
		<category><![CDATA[程式設言]]></category>
		<category><![CDATA[apache htaccess]]></category>
		<category><![CDATA[bingbot]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://blog.ocam.live/?p=4729</guid>

					<description><![CDATA[近幾個月來如果有定時分析網頁記錄的或有時發生 CPU 飆高。你可能正面臨 BingBot 用隨機字串搜尋爬你的 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">近幾個月來如果有定時分析網頁記錄的或有時發生 CPU 飆高。你可能正面臨 BingBot 用隨機字串搜尋爬你的網站資料。一般 wordpress 的專家都知道 wordpress 只有在使用靜態頁快取時才會反應較快且吃的 CPU 資源也較低。但如果發生隨機字串搜尋時就會直接吃 PHP + MYSQL 資源，此時就是網站發生反應慢及 CPU 飆高。較慘狀況是網站直接當機或被雲端廠商直接鎖網站。如附圖重覆網址一直搜尋。</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="860" height="656" src="https://blog.ocam.live/wp-content/uploads/2025/12/bing_bot_spam-860x656.png" alt="bing bot spam" class="wp-image-4732" title="為什麼 Bingbot 一直用隨機搜尋字詞來灌爆 Wordpress 網站" srcset="https://blog.ocam.live/wp-content/uploads/2025/12/bing_bot_spam-860x656.png 860w, https://blog.ocam.live/wp-content/uploads/2025/12/bing_bot_spam-600x458.png 600w, https://blog.ocam.live/wp-content/uploads/2025/12/bing_bot_spam-768x586.png 768w, https://blog.ocam.live/wp-content/uploads/2025/12/bing_bot_spam.png 1077w" sizes="(max-width: 860px) 100vw, 860px" /></figure>



<h2 class="wp-block-heading">解決方式</h2>



<p class="wp-block-paragraph">一般會以 robots.txt 來解備，但這緩不濟急，你得讓 Bingbot 重新讀取後才有可能生效。但問題是現在正面臨該問題。且也不知道新的 robots.txt 何時會生效。這邊我建議的是用 .htaccess 解決。直接擋 User Agent 是 bingbot 且搜尋字串有特定字出現。如附圖</p>



<pre class="wp-block-code"><code>40.77.167.17 - - &#91;26/Dec/2025:15:14:15 +0800] "GET /search?source=keyword HTTP/1.1" 301 4246 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36"
40.77.167.1 - - &#91;26/Dec/2025:15:14:20 +0800] "GET /search?source=keyword HTTP/1.1" 301 4246 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36"
40.77.167.17 - - &#91;26/Dec/2025:15:14:38 +0800] "GET /search?source=keyword HTTP/1.1" 301 4246 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36"
40.77.167.17 - - &#91;26/Dec/2025:15:14:39 +0800] "GET /search?source=keyword HTTP/1.1" 301 4246 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36"
40.77.167.17 - - &#91;26/Dec/2025:15:14:40 +0800] "GET /search?source=keyword HTTP/1.1" 301 584 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36"
40.77.167.17 - - &#91;26/Dec/2025:15:14:41 +0800] "GET /search?source=keyword HTTP/1.1" 301 584 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36"
</code></pre>



<p class="wp-block-paragraph">在 .htaccess 加上如下程式碼，</p>



<pre class="wp-block-code"><code>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&amp;)source=keyword(&amp;|$) &#91;NC]
RewriteCond %{HTTP_USER_AGENT} bingbot &#91;NC]
RewriteRule ^ /? &#91;R=301,L]
&lt;/IfModule&gt;
</code></pre>



<h2 class="wp-block-heading">注意事項</h2>



<p class="wp-block-paragraph">每個 URL 擋的規則都不一樣，得分析網頁記錄上的規則性。看不沒有同樣的規則，再利用同樣的規則寫 .htaccess 的條件。有用 chatgtp 或 gemini 的也可請 AI 寫，方便很多。</p>



<p class="wp-block-paragraph"><a href="https://learn.microsoft.com/en-us/answers/questions/2344612/verified-bingbot-ips-are-spamming-my-site?page=1#answers" target="_blank" rel="noreferrer noopener nofollow">其它網上討論的相關問題</a> 我自已的網站是發生明明我的是資訊網站但 BingBot 會搜健康或營養的關鍵字</p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
		<media:content url="https://blog.ocam.live/wp-content/uploads/2025/12/Bingbot-is-spamming-my-site.png" medium="image"></media:content>
            	</item>
		<item>
		<title>2025 微軟 Microsoft bingbot 的異常行為</title>
		<link>https://blog.ocam.live/archives/3676</link>
		
		<dc:creator><![CDATA[blog.ocam.live]]></dc:creator>
		<pubDate>Wed, 23 Apr 2025 03:41:26 +0000</pubDate>
				<category><![CDATA[IT 日常]]></category>
		<category><![CDATA[bingbot]]></category>
		<category><![CDATA[爬蟲]]></category>
		<guid isPermaLink="false">https://blog.ocam.live/?p=3676</guid>

					<description><![CDATA[bingbot 一直抓重覆的網頁 這幾天一直查到 bingbot 一直抓重覆的網頁 『GET /search』 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">bingbot 一直抓重覆的網頁</h2>



<p class="wp-block-paragraph">這幾天一直查到 bingbot 一直抓重覆的網頁 『GET /search』。從行為為來理解，個人就會覺得很奇怪，是微軟的程式沒寫好還是怎樣，同一頁一直抓一直抓有義意嗎？如果說是隔陣子或隔天就算了，它是同時間一直抓取。任務排程壞了嗎？</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://blog.ocam.live/wp-content/uploads/2025/04/bingbot-1024x436.png" alt="bingbot abnormal behavior" class="wp-image-3678" title="2025 微軟 Microsoft bingbot 的異常行為"></figure>



<p class="wp-block-paragraph">問題是針對這種必要的爬蟲好像也不能隨意擋。只能期望它自已趕快好吧。不過它昨天跑了 22192 次。前天跑了 24780 次。算次數的指令如下。有需要的自已可參考一下</p>



<pre class="wp-block-code"><code>cd /var/log/apache2
cat log檔案 | grep "GET /search" | wc -l</code></pre>



<figure class="wp-block-image size-large"><img decoding="async" src="https://blog.ocam.live/wp-content/uploads/2025/04/bingbot_count-1024x420.png" alt="bingbot url count" class="wp-image-3681" title="2025 微軟 Microsoft bingbot 的異常行為"></figure>


<div class="wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-7280d78" id="x-68000-games-supporting" data-block-id="7280d78"><h2 class="stk-block-heading__text">延伸閱讀</h2></div><div class="reading-grid"><a href="https://blog.ocam.live/archives/4100" class="card">
      <img decoding="async" width="300" height="300" src="https://blog.ocam.live/wp-content/uploads/2025/06/Claude-AI-for-Google-GSC-300x300.jpg" class="attachment-thumbnail size-thumbnail" alt="Claude AI for Google GSC" title="2025 微軟 Microsoft bingbot 的異常行為">
      <div class="card-content">
        <div class="card-title">快速利用 Claude AI 來即時分析 Google Search Console 的資料</div>
      </div>
		</a><a href="https://blog.ocam.live/archives/3923" class="card">
      <img decoding="async" width="300" height="300" src="https://blog.ocam.live/wp-content/uploads/2025/05/build_a_function_by_using_chatgpt-300x300.jpg" class="attachment-thumbnail size-thumbnail" alt="build_a_function_by_using_chatgpt" title="2025 微軟 Microsoft bingbot 的異常行為">
      <div class="card-content">
        <div class="card-title">用 ChatGPT 寫 WordPress 程式</div>
      </div>
		</a><a href="https://blog.ocam.live/archives/4186" class="card">
      <img loading="lazy" decoding="async" width="300" height="300" src="https://blog.ocam.live/wp-content/uploads/2025/10/存檔備份-300x300.jpg" class="attachment-thumbnail size-thumbnail" alt="Batocera 存檔備份" title="2025 微軟 Microsoft bingbot 的異常行為">
      <div class="card-content">
        <div class="card-title">Batocera V4.x 存檔的備份方式</div>
      </div>
		</a></div></ul>
]]></content:encoded>
					
		
		
		<media:content url="https://blog.ocam.live/wp-content/uploads/2025/04/bingbot_logo.jpg" medium="image"></media:content>
            	</item>
	</channel>
</rss>
