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.
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...