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 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-61514 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/tips/2024091461514.html" data-wpel-link="internal">如何更新到 WordPress 6.6.2 维护版本</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61502 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="85" src="https://wpjian.com/wp-content/uploads/2024/09/Error.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/tips/2024091461502.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/tips/2024091461502.html" data-wpel-link="internal">如何修复 WordPress 网站上的 500 内部服务器错误</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61489 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="69" src="https://wpjian.com/wp-content/uploads/2024/09/wpcode-search-1024x473-1.png" class="attachment-thumbnail size-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" />						</div>

						<a class="cs-overlay-link" href="https://wpjian.com/tips/2024091461489.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/tips/2024091461489.html" data-wpel-link="internal">如何修复 WordPress 中的“您所关注的链接已过期”错误</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61485 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/tips/2024091461485.html" data-wpel-link="internal">如何修复 WordPress 帖子 404 错误:快速简便的解决方案</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61470 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="85" src="https://wpjian.com/wp-content/uploads/2024/09/common-block-editor-issues-and-how-to-fix-it.png" class="attachment-thumbnail size-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" />						</div>

						<a class="cs-overlay-link" href="https://wpjian.com/tips/2024091461470.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/tips/2024091461470.html" data-wpel-link="internal">13 个常见的 WordPress 块编辑器问题及其解决方法</a>
					</h3>

									</div>
			</div>
		</article>
								</li>
											<li class="pk-post-item">
									<article class="post-61459 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="64" src="https://wpjian.com/wp-content/uploads/2024/09/20240914.png" class="attachment-thumbnail size-thumbnail wp-post-image" alt="激活默认主题" decoding="async" loading="lazy" />						</div>

						<a class="cs-overlay-link" href="https://wpjian.com/tips/2024091461459.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/tips/2024091461459.html" data-wpel-link="internal">如何修复“您的网站出现严重错误”错误</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-31861 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/wordpress-seo/2020041531861.html" data-wpel-link="internal">有关COVID-19变更的商业帖子的Facebook模板</a></h2>
									<div class="cs-entry__excerpt">
						[ad_1] Facebook正在提供一组模板,以帮助企业交流COVID-19大流行…					</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">2020年4月15日</div></div>						</div>
					</div>
				
									<div class="cs-entry__read-more">
						<a href="https://wpjian.com/wordpress-seo/2020041531861.html" data-wpel-link="internal">
							阅读更多						</a>
					</div>
				
							</div>
						</div>
		</div>
	</article>



	<article class="cs-entry-default post-31107 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/wordpress-seo/2020031531107.html" data-wpel-link="internal">Google的John Mueller:我们不在搜索结果中使用W3C验证</a></h2>
									<div class="cs-entry__excerpt">
						[ad_1] Google的John Mueller最近在网站管理员视频群聊中表示,…					</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">2020年3月15日</div></div>						</div>
					</div>
				
									<div class="cs-entry__read-more">
						<a href="https://wpjian.com/wordpress-seo/2020031531107.html" data-wpel-link="internal">
							阅读更多						</a>
					</div>
				
							</div>
						</div>
		</div>
	</article>



	<article class="cs-entry-default post-37255 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/wordpress-seo/2020110937255.html" data-wpel-link="internal">2020年6个最佳WordPress Google Analytics(分析)插件(全部免费!)</a></h2>
									<div class="cs-entry__excerpt">
						[ad_1] 搜索最佳的WordPress Google Analytics(分析)…					</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">2020年11月9日</div></div>						</div>
					</div>
				
									<div class="cs-entry__read-more">
						<a href="https://wpjian.com/wordpress-seo/2020110937255.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/" data-wpel-link="internal">
				WP建站			</a>

					</div>
		
								<div class="cs-footer__desc">
				<p class="copyright">© 2019 - 2022 by <a href="https://wpjian.com" 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>

<!-- This website is like a Rocket, isn