How does cludflare works?
When a request for the site is reached, it is first handled by the cloudflare CDN network. The CDN network has certain security feature to check if the IP is threat based/what resource they are requesting, what payload they are posting, how frequently they're making requests, etc. and block the attacks. Cloudflare speeds website speed by caching the static contents in the CDN server and the dymamic contents are loaded from the actual server. The things that cache is,
=-=-=-
CSS and Java Script
*That does not cache are html files.
=-=-==
This makes the site loads faster. The caching is updated regularly so that cached content does not store in the CDN for long. When using cloudflare, the following features are same,
=-=-=-=-
1. Registrar remains your registrar.
2. Your hosting provider remains your hosting provider.
=-=-=-=-
*The thing which changes is authorative name-server became name-server of cloudflare. The net result of these will reduce the bandwidth by 60%.There is a feature called Rocket Loader, which is an optimizaton technique that speed up the site. This has following feature,
=-=-=-=-
#It ensures that all the scripts on your page will not block the content of your page from loading;
#Loads all the scripts on your page, including third party scripts, asynchronously;
#Bundles all the script requests into a single request over which multiple responses can be streamed;
#Uses LocalStorage on most browsers and nearly all smart phones to more intelligently store scripts so they aren't refetched unless necessary.
=-=-=-=-
Debugging Cloudflare issues.
if the site is unavailable, first ensure that this is a cloudflare issue or issue with hosting server. This can be found out by performing the following,
=-=-=-
Execute the command,
---------------------------------
curl -v -A firefox/4.0 -H 'Host: yourdomain.com' YourServerIP
---------------------------------
1) Check to make sure your server is online (see instructions on to do this above)
2) If your server is online, make sure CloudFlare's IPs are not being blocked
3) If your server is online and CloudFlare's IP are not being blocked, send us the report here. In your email, include:
i) Your website
ii) Where the visitor is geographically located (Issues are almost always isolated to one of our data centers. By knowing where they are located, we can investigate much quicker)
iii) A description of the error page they are seeing
iv) The output of a traceroute (if possible)
4) Temporarily deactivate CloudFlare for your website by choosing ‘Deactivate' from your CloudFlare control panel. Choosing deactivate means that CloudFlare will continue to resolve DNS for your website, but none of your traffic will pass through our performance and security network. If it is a CloudFlare issue, this will immediately resolve the problem and our team can investigate the report. Once we've identified what is wrong, you will easily be able to reactivate CloudFlare. Note: You do not need to change your name servers.
References-:
http://blog.cloudflare.com/cloudflare-tips-troubleshooting-common-proble/
http://blog.cloudflare.com/56590463/
http://www.quora.com/How-does-CloudFlare-work
https://www.cloudflare.com/ips
When a request for the site is reached, it is first handled by the cloudflare CDN network. The CDN network has certain security feature to check if the IP is threat based/what resource they are requesting, what payload they are posting, how frequently they're making requests, etc. and block the attacks. Cloudflare speeds website speed by caching the static contents in the CDN server and the dymamic contents are loaded from the actual server. The things that cache is,
=-=-=-
CSS and Java Script
*That does not cache are html files.
=-=-==
This makes the site loads faster. The caching is updated regularly so that cached content does not store in the CDN for long. When using cloudflare, the following features are same,
=-=-=-=-
1. Registrar remains your registrar.
2. Your hosting provider remains your hosting provider.
=-=-=-=-
*The thing which changes is authorative name-server became name-server of cloudflare. The net result of these will reduce the bandwidth by 60%.There is a feature called Rocket Loader, which is an optimizaton technique that speed up the site. This has following feature,
=-=-=-=-
#It ensures that all the scripts on your page will not block the content of your page from loading;
#Loads all the scripts on your page, including third party scripts, asynchronously;
#Bundles all the script requests into a single request over which multiple responses can be streamed;
#Uses LocalStorage on most browsers and nearly all smart phones to more intelligently store scripts so they aren't refetched unless necessary.
=-=-=-=-
Debugging Cloudflare issues.
if the site is unavailable, first ensure that this is a cloudflare issue or issue with hosting server. This can be found out by performing the following,
=-=-=-
Execute the command,
---------------------------------
curl -v -A firefox/4.0 -H 'Host: yourdomain.com' YourServerIP
---------------------------------
1) Check to make sure your server is online (see instructions on to do this above)
2) If your server is online, make sure CloudFlare's IPs are not being blocked
3) If your server is online and CloudFlare's IP are not being blocked, send us the report here. In your email, include:
i) Your website
ii) Where the visitor is geographically located (Issues are almost always isolated to one of our data centers. By knowing where they are located, we can investigate much quicker)
iii) A description of the error page they are seeing
iv) The output of a traceroute (if possible)
4) Temporarily deactivate CloudFlare for your website by choosing ‘Deactivate' from your CloudFlare control panel. Choosing deactivate means that CloudFlare will continue to resolve DNS for your website, but none of your traffic will pass through our performance and security network. If it is a CloudFlare issue, this will immediately resolve the problem and our team can investigate the report. Once we've identified what is wrong, you will easily be able to reactivate CloudFlare. Note: You do not need to change your name servers.
References-:
http://blog.cloudflare.com/cloudflare-tips-troubleshooting-common-proble/
http://blog.cloudflare.com/56590463/
http://www.quora.com/How-does-CloudFlare-work
https://www.cloudflare.com/ips