{"id":1459,"date":"2020-06-07T21:20:58","date_gmt":"2020-06-07T13:20:58","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1459"},"modified":"2026-01-12T14:57:02","modified_gmt":"2026-01-12T06:57:02","slug":"im-getting-a-crawl-error-on-cloudflare-cdn-cgi-files","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/im-getting-a-crawl-error-on-cloudflare-cdn-cgi-files","title":{"rendered":"I\u2019m getting a crawl error on Cloudflare cdn-cgi files."},"content":{"rendered":"<h3><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/global.discourse-cdn.com\/cloudflare\/optimized\/3X\/9\/6\/96c195fae352020a1073ead60e0f3f24687b3a81_2_690x433.png\" alt=\"Cloudflare cdn-cgi files\" width=\"690\" height=\"433\" \/><\/h3>\n<h3><strong>I\u2019m getting a crawl error on Cloudflare cdn-cgi files.<\/strong><\/h3>\n<p>Crawl error on <a href=\"https:\/\/www.cloudflare.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Cloudflare<\/a> cdn-cgi files.<\/p>\n<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:<\/p>\n<p><code>Disallow: \/cdn-cgi\/<\/code><\/p>\n<p><strong>An additional option using WordPress:<\/strong><\/p>\n<p><strong>Solution provided by Ben<br \/>\n<\/strong><\/p>\n<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>\n<p>function do_robots() {<br \/>\nheader( \u2018Content-Type: text\/plain; charset=utf-8\u2019 );<\/p>\n<p>do_action( \u2018do_robotstxt\u2019 );<\/p>\n<p>$output = \u201cUser-agent: *\\n\u201d;<br \/>\n$public = get_option( \u2018blog_public\u2019 );<br \/>\nif ( \u20180\u2019 == $public ) {<br \/>\n$output .= \u201cDisallow: \/\\n\u201d;<br \/>\n} else {<br \/>\n$site_url = parse_url( site_url() );<br \/>\n$path = ( !empty( $site_url[\u2018path\u2019] ) ) ? $site_url[\u2018path\u2019] : \u201d;<br \/>\n$output .= \u201cDisallow: $path\/wp-admin\/\\n\u201d;<br \/>\n$output .= \u201cDisallow: $path\/wp-includes\/\\n\u201d;<br \/>\n$output .= \u201cDisallow: $path\/cdn-cgi\/\\n\u201d;<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n<p>Note: This won\u2019t 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\u2019t need to be crawl, and they possibly can\u2019t read the DOM or JavaScript in that resource.<\/p>\n<p>&nbsp;<\/p>\n<p><span data-sheets-root=\"1\">Please refer to the following article to know more.<br \/>\nKnowledge Base:<a href=\"https:\/\/www.servergigabit.com\/guide\/kb\/im-getting-google-crawler-errors-what-should-i-do\"> I\u2019m getting Google Crawler Errors. What should I do?<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019m getting a crawl error on Cloudflare cdn-cgi files. 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: Disallow: \/cdn-cgi\/ An additional option using WordPress: Solution provided by Ben You can make modifications in your \/wp-includes\/functions.php&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[43],"kbtag":[1477],"class_list":["post-1459","kb","type-kb","status-publish","hentry","kbtopic-cloudflare","kbtag-cloudflare-cdn-cgi-files"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=1459"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1459\/revisions"}],"predecessor-version":[{"id":6102,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1459\/revisions\/6102"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1459"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1459"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}