Using Cloudflare with Shopblocks

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:

  1. Login to Cloudflare and select your site

  2. In the left hand sidebar select Network

  3. Ensure HTTP/2 to Origin is enabled

  4. In the left hand sidebar select SSL/TLS

  5. Select at least Full, Full (strict) will also work if you require it.

  6. 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.

  7. 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:

    1. skip WAF where the header x-varnish-method equals "BAN"

 

CUSTOM WAF RULE

Frame 1