NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ
for more details.
is a fantastic service and as I was moving one of my sites to use CloudFlare
this weekend I wanted to know for sure if it was being served via the CloudFlare
network or still from my web server. With a little bit of curl
and looking at some HTTP
headers this is very easy thing to check.
The following command will display all header information for a request to the site:
The output looks similar to this when your site is not
, of course this will vary from server to server, the main point is there aren't any CloudFlare specific headers present:
Now once the site (or rather the DNS) switches over to CloudFlare
the headers change to something like this...
Specifically these are the new headers specific to CloudFlare
Out of all those new headers we only really care about the value for the Server
header, so the following command is what we're really after:
Running that produces the following output and you can clearly see that the CloudFlare nginx
server is being used to deliver your site's content.
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
If you spot something out of place, please do let me know.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...