What is Cloudflare?
Cloudflare is a powerful tool designed to make your website faster, safer, and more reliable. It acts like a global safety net and speed booster for your site by caching content in multiple locations around the world, so your visitors experience quick loading times no matter where they are. Beyond speed, Cloudflare offers top-notch security features like encryption (SSL) and protection against online threats, helping you keep your website and customer data safe.
With Cloudflare, you don’t just protect your site—you enhance its performance, ensuring a smoother experience for your users while saving yourself time and effort.
Using Cloudflare with Shopblocks
In order to use Cloudflare effectively with your Shopblocks site you must enable SSL between cloudflare and Shopblocks.
To do this you need to do the following:
-
Login to Cloudflare and select your site
-
In the left hand sidebar select Network
-
Ensure HTTP/2 to Origin is enabled
-
In the left hand sidebar select SSL/TLS
-
Select at least Full, Full (strict) will also work if you require it.
-
It will take a few minutes for Cloudflare to update the settings. Providing that your Cloudflare domain is added to your Shopblocks site (you can do this in Settings → Site Settings → Domains) over the next few minutes we will generate a certificate and you’ll be ready to use that domain with your Shopblocks site.
-
If you use the Cloudflare Web Application Firewall (WAF) to protect your site, you should also add a custom WAF rule to ensure Varnish is cleared correctly:
-
skip WAF where the header x-varnish-method equals "BAN"
-
CUSTOM WAF RULE