{"id":1742,"date":"2020-06-08T01:42:09","date_gmt":"2020-06-07T17:42:09","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1742"},"modified":"2026-01-12T12:58:42","modified_gmt":"2026-01-12T04:58:42","slug":"whitelist-cloudflare-ip-addresses","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/whitelist-cloudflare-ip-addresses","title":{"rendered":"Whitelist Cloudflare IP addresses"},"content":{"rendered":"<h4 id=\"article-body\" class=\"article-body\">Whitelist Cloudflare IP addresses<\/h4>\n<article class=\"article-body\">Changing your name servers to<a href=\"https:\/\/www.cloudflare.com\/\" rel=\"nofollow noopener\" target=\"_blank\"> Cloudflare <\/a>routes traffic through Cloudflare for any orange-clouded DNS records in the Cloudflare\u00a0<strong>DNS<\/strong>\u00a0app.<\/article>\n<article class=\"article-body\">So that, your origin web server will receives traffic from Cloudflare IP addresses due to Cloudflare\u2019s reverse proxy.Blocking or rate limiting Cloudflare connections prevents visitor traffic from reaching your website.To avoid blocking Cloudflare IPs unintentionally check that:<\/p>\n<ul>\n<li>Your origin web server\u00a0iptables\u00a0are set to trust Cloudflare IPs.<\/li>\n<li>Bad Beha vior\u00a0or mod_security is up to date.<\/li>\n<li>Your\u00a0htaccess file\u00a0whitelist Cloudflare IPs.<\/li>\n<li>Any security plugins, such as\u00a0WordPress security plugins, whitelist Cloudflare IPs.<\/li>\n<\/ul>\n<p><b>Similarly ,\u00a0<\/b>For Cloudflare to send visitor requests to your origin web server, whitelist Cloudflare IP addresses at your origin web server.\u00a0<b>In addition ,<\/b>\u00a0Contact your hosting provider or website administrator if you have questions.<\/p>\n<div>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h2 class=\"mkb-anchor__title\">Related resources<\/h2>\n<\/div>\n<ul>\n<li>\u00a0IP addresses with .htaccess<\/li>\n<li>\u00a0iptables<\/li>\n<li>\u00a0iThemes Security?<\/li>\n<li>\u00a0Is Cloudflare compatible with Bad Behavior?<\/li>\n<li>\u00a0What are Cloudflare\u2019s IPs?<\/li>\n<\/ul>\n<\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>Whitelist Cloudflare IP addresses Changing your name servers to Cloudflare routes traffic through Cloudflare for any orange-clouded DNS records in the Cloudflare\u00a0DNS\u00a0app. So that, your origin web server will receives traffic from Cloudflare IP addresses due to Cloudflare\u2019s reverse proxy.Blocking or rate limiting Cloudflare connections prevents visitor traffic from reaching your website.To avoid blocking Cloudflare IPs unintentionally check that: Your&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[43],"kbtag":[1379],"class_list":["post-1742","kb","type-kb","status-publish","hentry","kbtopic-cloudflare","kbtag-whitelist-cloudflare"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1742","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=1742"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1742\/revisions"}],"predecessor-version":[{"id":5984,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1742\/revisions\/5984"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1742"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1742"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}