WordPress 5.3將改變它如何阻止索引

[ad_1]
WordPress 5.3將改變它如何阻止索引

WordPress宣布了一個重要的變化,它將阻止搜索引擎從索引網站。這種變化放棄了傳統的Robots.txt解決方案,轉而採用機器人元標記方法。此更改符合阻止Google的常見意圖。這是為了防止被阻止的網頁顯示在Google的搜索結果中。

這是WordPress將使用的機器人元標記:

阻止Google從索引編製

長期以來,使用Robots.txt來阻止網站的「索引」是一種標準做法。

「索引」一詞意味著GoogleBot會抓取該網站。通過使用Robots.txt阻止功能,您可以阻止Google下載指定的網頁,並且假設Google無法在搜索結果中顯示您的網頁。

但robots.txt指令僅阻止Google抓取該網頁。如果Google能夠發現該網址,Google仍然可以將其添加到索引中。

因此,為了阻止網站出現在索引中,發布商會阻止Google對網頁進行「索引」。這不是一貫有效的。

WordPress 5.3將真正防止索引

WordPress採用了Robots.txt方法。但是版本5.3中的情況正在發生變化。

當發布商目前選擇「阻止搜索引擎索引此網站」時,它會向該網站的robots.txt添加一個禁止Google抓取網站的條目。

從WordPress 5.3開始,WordPress將採用更可靠的機器人元標記方法來阻止網站的索引。

此更改將影響「阻止搜索引擎索引此站點」設置。

這種變化是一種改進。 WordPress發布商可以更安全地知道被阻止的網頁不會顯示在Google的搜索結果中。

WordPress 5.3公告的屏幕截圖,文本如下:「在WordPress 5.3中,用於阻止索引的方法將在允許選項」阻止搜索引擎索引此站點「的站點上更改WordPress儀錶板中的這些更改。這些更改是作為票證的一部分進行的#43590。這些更改旨在更好地阻止搜索引擎列出網站,而不是僅阻止他們抓取網站。「'width =」600「height =」483「sizes =」(max-width:600px)100vw, 600px「data-srcset =」https://cdn.searchenginejournal.com/wp-content/uploads/2019/09/wordpress-5.3-announcement.png 600w,https://cdn.searchenginejournal.com/wp-content/ uploads / 2019/09 / wordpress-5.3-announcement-480x386.png 480w「data-src =」https://cdn.searchenginejournal.com/wp-content/uploads/2019/09/wordpress-5.3-announcement.png">WordPress 5.3變更公告的屏幕截圖。為什麼WordPress使用Robots.txt? </p>
<p>WordPress依靠Robots.txt來阻止網站的索引,因為每個人都不會在Google的搜索結果中顯示網頁。這是標準的做法。</p>
<p>然而,即使每個人都這樣做,正如已經解釋過的那樣,這是一種不可靠的方法。</p>
<p>「索引」一詞有兩個含義:</p>
<ol>
<li>索引意味著抓取,就像Googlebot訪問和下載網頁時一樣。</li>
<li>索引還可以意味著將網頁添加到Google的網頁資料庫(稱為索引)。</li>
</ol>
<p>阻止谷歌「索引」網頁將使其無法看到網頁,但谷歌仍然可以將網頁編入索引並將其添加到谷歌的索引中。合理?</p>
<p> Robots.txt與機器人元標記 </p>
<p>將網頁保留在Google索引之外並不是Robots.txt解決方案的目的。這樣做是機器人元標記的工作。</p>
<p>因此,很高興看到WordPress將機器人元標記作為阻止網頁在搜索引擎中顯示的解決方案。</p>
<p>WordPress 5.3計劃於2019年11月發布。</p>
<h3>閱讀WordPress公告:</h3>
<p><a href="https://make.wordpress.org/core/2019/09/02/changes-to-prevent-search-engines-indexing-sites/" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external">防止搜索引擎索引站點的更改</a></p>
<h3>閱讀Google的權威文檔</h3>
<ol>
<li><a href="https://developers.google.com/search/reference/robots_meta_tag" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external">機器人元標記和X-Robots-Tag HTTP標頭規範</a></li>
<li><a href="https://support.google.com/webmasters/answer/93710?hl=en" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external">使用'noindex'阻止搜索索引</a></li>
</ol>
			</div>

					</div>

		
	</div>

	</div>

		
	
	
</div>


	<aside id="secondary" class="cs-widget-area cs-sidebar__area">
		<div class="cs-sidebar__inner">
						<div class="widget_text widget custom_html-2 widget_custom_html"><div class="textwidget custom-html-widget"><a href="https://www.vultr.com/?ref=8945630-8H" data-wpel-link="external" target="_self" rel="nofollow external noopener noreferrer"><img src="https://wpjian.com/wp-content/uploads/2020/09/VULTR.jpg" width="100%" height="auto"></a></div></div><div class="widget widget_wpcc-2 widget_wpcc">
<div id="wpcc_widget_inner">
	<span id="wpcc_original_link" class="wpcc_lang" ><a class="wpcc_link" href="https://wpjian.com/wordpress-seo/201909037647.html" title="簡體中文" data-wpel-link="internal">簡體中文</a></span>
	<span id="wpcc_zh-tw_link" class="wpcc_current_lang" ><a class="wpcc_link" href="https://wpjian.com/zh-tw/wordpress-seo/201909037647.html" title="繁体中文" data-wpel-link="internal">繁体中文</a></span>
</div>
</div><div class="widget powerkit_widget_posts-2 powerkit_widget_posts">
			<div class="widget-body pk-widget-posts pk-widget-posts-template-default pk-widget-posts-template-list posts-per-page-6">
				<ul>
											<li class="pk-post-item">
									<article class="post-61438 post type-post status-publish format-standard has-post-thumbnail category-tips cs-entry cs-video-wrap" style="">
			<div class="cs-entry__outer">
									<div class="cs-entry__inner cs-entry__thumbnail cs-overlay-ratio cs-ratio-original">
						<div class="cs-overlay-background cs-overlay-transparent">
							<img width="150" height="97" src="https://wpjian.com/wp-content/uploads/2024/01/wordpress-theme-file-editor.webp.jpg" class="attachment-thumbnail size-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" />						</div>

						<a class="cs-overlay-link" href="https://wpjian.com/zh-tw/tips/2024010561438.html" data-wpel-link="internal"></a>
					</div>
				
				<div class="cs-entry__inner cs-entry__content">
					
					<h3 class="cs-entry__title">
						<a href="https://wpjian.com/zh-tw/tips/2024010561438.html" data-wpel-link="internal">如何在沒有插件的情況下在 WordPress 中導入 CSV 文件</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61410 post type-post status-publish format-standard has-post-thumbnail category-tips cs-entry cs-video-wrap" style="">
			<div class="cs-entry__outer">
									<div class="cs-entry__inner cs-entry__thumbnail cs-overlay-ratio cs-ratio-original">
						<div class="cs-overlay-background cs-overlay-transparent">
							<img width="150" height="67" src="https://wpjian.com/wp-content/uploads/2024/01/how-to-enable-maintenance-mode-in-wordpress.png" class="attachment-thumbnail size-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" />						</div>

						<a class="cs-overlay-link" href="https://wpjian.com/zh-tw/tips/2024010561410.html" data-wpel-link="internal"></a>
					</div>
				
				<div class="cs-entry__inner cs-entry__content">
					
					<h3 class="cs-entry__title">
						<a href="https://wpjian.com/zh-tw/tips/2024010561410.html" data-wpel-link="internal">如何將 WordPress 置於維護模式(安全且簡單的方法)</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61400 post type-post status-publish format-standard has-post-thumbnail category-tips cs-entry cs-video-wrap" style="">
			<div class="cs-entry__outer">
									<div class="cs-entry__inner cs-entry__thumbnail cs-overlay-ratio cs-ratio-original">
						<div class="cs-overlay-background cs-overlay-transparent">
							<img width="150" height="46" src="https://wpjian.com/wp-content/uploads/2024/01/how-to-add-images-708x218-1.jpg" class="attachment-thumbnail size-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" />						</div>

						<a class="cs-overlay-link" href="https://wpjian.com/zh-tw/tips/2024010561400.html" data-wpel-link="internal"></a>
					</div>
				
				<div class="cs-entry__inner cs-entry__content">
					
					<h3 class="cs-entry__title">
						<a href="https://wpjian.com/zh-tw/tips/2024010561400.html" data-wpel-link="internal">如何向 WordPress 帖子添加多媒體</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61390 post type-post status-publish format-standard category-tips cs-entry cs-video-wrap" style="">
			<div class="cs-entry__outer">
				
				<div class="cs-entry__inner cs-entry__content">
					
					<h3 class="cs-entry__title">
						<a href="https://wpjian.com/zh-tw/tips/2023092061390.html" data-wpel-link="internal">谷歌域名與WordPress集成:建立您的專業網站</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61386 post type-post status-publish format-standard category-tips cs-entry cs-video-wrap" style="">
			<div class="cs-entry__outer">
				
				<div class="cs-entry__inner cs-entry__content">
					
					<h3 class="cs-entry__title">
						<a href="https://wpjian.com/zh-tw/tips/2023092061386.html" data-wpel-link="internal">了解WordPress社區:專訪揭示內部運作</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61382 post type-post status-publish format-standard category-tips cs-entry cs-video-wrap" style="">
			<div class="cs-entry__outer">
				
				<div class="cs-entry__inner cs-entry__content">
					
					<h3 class="cs-entry__title">
						<a href="https://wpjian.com/zh-tw/tips/2023092061382.html" data-wpel-link="internal">Azure 提供的 WordPress 免費遊樂場</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
									</ul>
			</div>

			</div><div class="widget_text widget custom_html-4 widget_custom_html"><div class="textwidget custom-html-widget"><script type="rocketlazyloadscript" async data-rocket-src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8713839794068339"
     crossorigin="anonymous"></script>
<!-- block -->
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
     data-ad-client="ca-pub-8713839794068339"
     data-ad-slot="7982876503"></ins>
<script type="rocketlazyloadscript">
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div></div>					</div>
	</aside>
	
							
						</div>

								<div class="cs-entry__post-related">
			<h5 class="cs-section-heading cs-section-heading-common is-style-cnvs-block-section-heading-default halignleft  "><span class="cs-section-subheadings">相關文章</span></h5>
			<div class="cs-entry__post-wrap">
				

	<article class="cs-entry-default post-48073 post type-post status-publish format-standard has-post-thumbnail category-wordpress-seo cs-entry cs-video-wrap">
		<div class="cs-entry__outer">
							
			
			<div class="cs-entry__inner cs-entry__content">

				
				<h2 class="cs-entry__title"><a href="https://wpjian.com/zh-tw/wordpress-seo/2021080548073.html" data-wpel-link="internal">5 家隱私友好型託管的最佳離岸 Web 託管服務提供商</a></h2>
									<div class="cs-entry__excerpt">
						[ad_1] 尋找最好的離岸虛擬主機? 您可能想要選擇離岸虛擬主機的原因有很多。 但…					</div>
				
							<div class="cs-entry__details ">
									<div class="cs-entry__details-data">
												<div class="cs-entry__details-meta">
							<div class="cs-entry__post-meta" ><div class="cs-meta-date">2021年8月5日</div></div>						</div>
					</div>
				
									<div class="cs-entry__read-more">
						<a href="https://wpjian.com/zh-tw/wordpress-seo/2021080548073.html" data-wpel-link="internal">
							閱讀更多						</a>
					</div>
				
							</div>
						</div>
		</div>
	</article>



	<article class="cs-entry-default post-7829 post type-post status-publish format-standard has-post-thumbnail category-wordpress-seo cs-entry cs-video-wrap">
		<div class="cs-entry__outer">
							
			
			<div class="cs-entry__inner cs-entry__content">

				
				<h2 class="cs-entry__title"><a href="https://wpjian.com/zh-tw/wordpress-seo/201909087829.html" data-wpel-link="internal">你應該從SEO指南,2019年實施的5個策略ROI放大</a></h2>
									<div class="cs-entry__excerpt">
						搜索引擎優化包含許多不同的策略,這些策略對於搜索引擎優化公司的非用戶來說可能很難實現…					</div>
				
							<div class="cs-entry__details ">
									<div class="cs-entry__details-data">
												<div class="cs-entry__details-meta">
							<div class="cs-entry__post-meta" ><div class="cs-meta-date">2019年9月8日</div></div>						</div>
					</div>
				
									<div class="cs-entry__read-more">
						<a href="https://wpjian.com/zh-tw/wordpress-seo/201909087829.html" data-wpel-link="internal">
							閱讀更多						</a>
					</div>
				
							</div>
						</div>
		</div>
	</article>



	<article class="cs-entry-default post-7908 post type-post status-publish format-standard has-post-thumbnail category-wordpress-seo cs-entry cs-video-wrap">
		<div class="cs-entry__outer">
							
			
			<div class="cs-entry__inner cs-entry__content">

				
				<h2 class="cs-entry__title"><a href="https://wpjian.com/zh-tw/wordpress-seo/201909107908.html" data-wpel-link="internal">B-to-B市場營銷人員指導新的賬戶營銷時代,2019年|梅克爾</a></h2>
									<div class="cs-entry__excerpt">
						基於帳戶的營銷(ABM)是一種結構化方法,用於為單個帳戶,潛在客戶或合作夥伴開發和實…					</div>
				
							<div class="cs-entry__details ">
									<div class="cs-entry__details-data">
												<div class="cs-entry__details-meta">
							<div class="cs-entry__post-meta" ><div class="cs-meta-date">2019年9月10日</div></div>						</div>
					</div>
				
									<div class="cs-entry__read-more">
						<a href="https://wpjian.com/zh-tw/wordpress-seo/201909107908.html" data-wpel-link="internal">
							閱讀更多						</a>
					</div>
				
							</div>
						</div>
		</div>
	</article>

			</div>
		</div>
	
	
	
					</div>

					
				</div>

				
			</main>

		
		
<footer class="cs-footer cs-footer-one" data-scheme="default">
	<div class="cs-container">
		<div class="cs-footer__item">
			<div class="cs-footer__col  cs-col-left">
				<div class="cs-footer__inner">
							<div class="cs-logo">
			<a class="cs-footer__logo cs-logo-once" href="https://wpjian.com/zh-tw/" data-wpel-link="internal">
				WP建站			</a>

					</div>
		
								<div class="cs-footer__desc">
				<p class="copyright">© 2019 - 2022 by <a href="https://wpjian.com/zh-tw/" data-wpel-link="internal">WPJIAN</a>. </p>			</div>
							</div>
			</div>
			<div class="cs-footer__col cs-col-center">
							</div>
			<div class="cs-footer__col cs-col-right">
				<div class="cs-footer-social-links">
									</div>
			</div>
		</div>
	</div>
</footer>

		
	</div>

	
</div>


<script type="rocketlazyloadscript" id="rocket-browser-checker-js-after">
"use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}();
</script>
<script id="rocket-preload-links-js-extra">
var RocketPreloadLinksConfig = {"excludeUris":"\/page\/|\/(?:.+\/)?feed(?:\/(?:.+\/?)?)?$|\/(?:.+\/)?embed\/|\/(index\\.php\/)?(.*)wp\\-json(\/.*|$)|\/refer\/|\/go\/|\/recommend\/|\/recommends\/","usesTrailingSlash":"","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https:\/\/wpjian.com","onHoverDelay":"100","rateThrottle":"3"};
</script>
<script type="rocketlazyloadscript" id="rocket-preload-links-js-after">
(function() {
"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run();
}());
</script>
<script type="rocketlazyloadscript" data-rocket-src="https://wpjian.com/wp-includes/js/imagesloaded.min.js?ver=5.0.0" id="imagesloaded-js" defer></script>
<script type="rocketlazyloadscript" data-rocket-src="https://wpjian.com/wp-content/themes/networker/assets/vendor/flickity.pkgd.min.js?ver=1.1.4" id="flickity-js" defer></script>
<script id="csco-scripts-js-extra">
var csLocalize = {"siteSchemeMode":"light","siteSchemeToogle":"1"};
var csco_mega_menu = {"rest_url":"https:\/\/wpjian.com\/wp-json\/csco\/v1\/menu-posts"};
</script>
<script type="rocketlazyloadscript" data-rocket-src="https://wpjian.com/wp-content/themes/networker/assets/js/scripts.js?ver=1.1.4" id="csco-scripts-js" defer></script>

</body>
</html>

<!-- WP Chinese Conversion Full Page Converted. Target Lang: zh-tw -->
<!-- This website is like a Rocket, isn