CloudFlare is a service which secures and optimizes the performance of a website. I have begun to use the service on the blog one week ago and here are two tips I found so far when tinkering around with the service:
When setting up a new site, add any sub-domains which you want to optimize through CloudFlare. Or you could add them later by going to your websites list, and select DNS settings from the drop-down list for the main domain that your sub-domains are in.
Here are some screenshots on the setup process for this blog, blog.robbychen.com:
You need to add the sub-domains one by one. Otherwise, CloudFlare won’t be able to automatically detect them and therefore they won’t benefit from the service.
CloudFlare Page Rules
This tip is for those of you who use back-end for your website, such as WordPress.
If you tried some apps in CloudFlare such as uservoice and infolinks, you may notice they appear in all pages on the site, even in the back-end and/or in the areas where you do not want the apps to be installed in.
To solve these issues, you can use Page rules:
On its settings page, you can define which URL you want to be excluded from certain features. Or you can use the pattern to define multiple URLs to be excluded, domain.com/wp-admin/* for example. Unfortunately, it can only use asterisks (*) in the URL pattern and cannot use regular expression to include more broad areas at one time, such as [*.]domain.com for both *.domain.com and domain.com. The only way to include these two patterns is to write separate rule for each of them. Below is a screenshot for these two rules I created.
Fortunately for me, the free plan of CloudFlare is enough for my sites. Besides the restrictions in the settings, there is also the limit of 3 page rules I can create. The free plan may or may not work for your site(s). You can try it free on your site(s) as long as you want, and purchase a paid plan if you want or in need of other features.
Do you have any other tips on using CloudFlare as well as any question regarding above tips? Please leave a comment below.