{"id":2871,"date":"2019-10-23T15:38:31","date_gmt":"2019-10-23T07:38:31","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=2871"},"modified":"2022-10-05T08:01:01","modified_gmt":"2022-10-05T00:01:01","slug":"im-getting-a-crawl-error-on-cloudflare-cdn-cgi-files","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/im-getting-a-crawl-error-on-cloudflare-cdn-cgi-files","title":{"rendered":"I&#8217;m getting a crawl error on Cloudflare cdn-cgi files."},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2871\" class=\"elementor elementor-2871\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9873d72 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9873d72\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-77e6dbb\" data-id=\"77e6dbb\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d59bd4a elementor-widget elementor-widget-heading\" data-id=\"d59bd4a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Crawl Error on Cloudflare cdn-cgi Files<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-40dbb133 elementor-widget elementor-widget-text-editor\" data-id=\"40dbb133\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>If you are getting a crawl error in Google Webmaster Tools for a cdn-cgi file, please disallow Google from crawling that with a rule in robots.txt for:\u00a0<\/p><p><code>Disallow: \/cdn-cgi\/<\/code><\/p><p><strong>An additional option using WordPress:<\/strong><\/p><p><strong>Solution provided by Ben<br \/><\/strong><\/p><p>You can make modifications in your \/wp-includes\/functions.php file. to create an additional Disallow rule. A sample of what it would look like is below:<\/p><p>function do_robots() {<br \/>header( &#8216;Content-Type: text\/plain; charset=utf-8&#8217; );<\/p><p>do_action( &#8216;do_robotstxt&#8217; );<\/p><p>$output = &#8220;User-agent: *\\n&#8221;;<br \/>$public = get_option( &#8216;blog_public&#8217; );<br \/>if ( &#8216;0&#8217; == $public ) {<br \/>$output .= &#8220;Disallow: \/\\n&#8221;;<br \/>} else {<br \/>$site_url = parse_url( site_url() );<br \/>$path = ( !empty( $site_url[&#8216;path&#8217;] ) ) ? $site_url[&#8216;path&#8217;] : &#8221;;<br \/>$output .= &#8220;Disallow: $path\/wp-admin\/\\n&#8221;;<br \/>$output .= &#8220;Disallow: $path\/wp-includes\/\\n&#8221;;<br \/>$output .= &#8220;Disallow: $path\/cdn-cgi\/\\n&#8221;;<br \/>}<\/p><p>Note: This won&#8217;t impact the actual crawl for your site at all. The error for \/cdn-cgi\/ is also not going to impact your rankings at all. Google is attempting to crawl a Cloudflare resource. One that doesn&#8217;t need to be crawl, and they possibly can&#8217;t read the DOM or JavaScript in that resource.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Crawl Error on Cloudflare cdn-cgi Files If you are getting a crawl error in Google Webmaster Tools for a cdn-cgi file, please disallow Google from crawling that with a rule in robots.txt for:\u00a0 Disallow: \/cdn-cgi\/ An additional option using WordPress: Solution provided by Ben You can make modifications in your \/wp-includes\/functions.php file. to create an &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/im-getting-a-crawl-error-on-cloudflare-cdn-cgi-files\"> <span class=\"screen-reader-text\">I&#8217;m getting a crawl error on Cloudflare cdn-cgi files.<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[53],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2871"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2871"}],"version-history":[{"count":6,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2871\/revisions"}],"predecessor-version":[{"id":18942,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2871\/revisions\/18942"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2871"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2871"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2871"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}