Cloudflare (9 Articles)

How to configure CS-Cart to work with Cloudflare and SSL

The free CloudFlare account that comes with every SiteGround shared and Cloud hosting plan is now supporting SSL. The following tutorial shows how to set up CloudFlare with SSL directly from your cPanel: How to use Cloudflare with SSL? Cloudflare works via a CNAME record for www. This means that www.domain.com  is redirected to Cloudflare’s servers, but domain.com  (without www) by default is not. Since the SSL certificates we offer are valid for both  yourdomain.com  and www.yourdomain.com , there is no problem to redirect your HTTP traffic to Cloudflare and your HTTPS traffic to the server hosting your account and SSL. To make the necessary changes for your CS-Cart application, you need to edit the  config.local.php file located in the CS-Cart installation folder. You need to modify the following line and set it without www for your domain (make sure you replace domain.com with your actual domain name): [crayon-58d736f93814d587795431/] Please note that in case you want to have your SSL certificate work via  www.domain.com  and still use Cloudflare's services, the only solution is to upgrade your Cloudflare account to Plus. You can do this from the Order section of your SiteGround User…

How to enable Cloudflare for a subdomain with a Free or PLUS Cloudflare plan

Cloudflare services are enabled for a given domain name and once activated can also be applied for any of its subdomains. Before you can use Cloudflare for a subdomain, you would have to enable the service for your main domain. You can find out how to enable Cloudflare for your domain in our Cloudflare tutorial . Once the service is active, to also use it with a subdomain, follow these steps: 1. Go to your cPanel, click on the Cloudflare icon and then the Manage button next to your domain. 2. The first tab on the next page, titled Subdomain , is where you can find a list of the existing subdomains for your domain and whether Cloudflare is active for any of them. Next to each subdomain there will also be an Activate button to activate the service. Click it. 3. In the Points To column you will now have a hostname like: www.sub.domain.com.cdn.cloudflare.com where sub.domain.com is your subdomain. Copy that hostname to your clipboard (Ctrl + C). 4. Go to your cPanel > Advanced DNS Zone Editor . If you have more than one domain names associated with the account there will be a drop-down menu. Choose the domain Cloudflare has been activated for, in our example that would be domain.com. 5. Once the zone is loaded find the records for subdomain sub.domain.com  - you should see one entry for an A type record and, if you have SPF enabled, one for TXT type record. If you see a TXT record, delete it by clicking Delete next to it and then click on Edit next to the A type record. 6. Change the type from A to CNAME and paste the Cloudflare hostname you copied in step 3 (Ctrl + V) in the Address field. 7. Click Edit Record to save the change and allow a few hours for DNS propagation. That's it, you have activated Cloudflare for your subdomain. There is also no problem to use Cloudflare PLUS with a subdomain. Just like the Free version of the service, Cloudflare PLUS is enabled and works with a specific domain, and can also be applied for any of its subdomains. When Cloudflare PLUS is activated for your domain, there are no additional fees required to also use it with any of its subdomains. Cloudflare PLUS can be activated for a subdomain in the same way as with the Free…

Java Applets not working via browser with active Cloudflare?

In case you have JavaScript that is trying to load Java Applets on your website and you are receiving 403 error message while you are using the Cloudflare service, please access your Cloudflare account settings and disable the following feature: " Browser Integrity check " Once this feature is disabled, the Java Applets will be properly loading via your JavaScripts and your website will be working…

Can Cloudflare protect my website from a DDoS attack?

One of the major features of Cloudflare is that its traffic pipe is very large and distributed all over the world. This means that if your website receives a large amount of traffic for a short period of time, even if it is a DDoS attack, Cloudflare will protect your website and it will remain up and functional. In fact, it is highly recommended that you enable Cloudflare if you expect a large increase in the traffic towards your website (e.g. if you are running a marketing campaign, you are having your site featured on a popular blog, etc).…

Will Cloudflare affect my Google Analytics stats?

Having Cloudflare enabled for your website will not affect your Google Analytics stats. Cloudflare's proxy does not interfere with the connection between your website and Google's servers. Thus when visitors open your site, they interact directly with Google's servers.  This does not apply only to Google but to any type of tracking software that collects data via a script on your website.…

Does Cloudflare gzip my site?

Yes, Cloudflare uses gzip to compress your website content, so you don't have to enable gzip yourself. If, however, you enable gzip for your website, it will not cause any disruptions and your website will remain fully functional.…

How to configure OpenCart to work with Cloudflare and SSL

The free CloudFlare account that comes with every SiteGround shared and Cloud hosting plan is now supporting SSL. The following tutorial shows how to set up the CDN to work with SSL directly from your cPanel: Does Cloudflare support SSL? As you may or may not know, Cloudflare works via a CNAME record for www. This means that www.yourdomain.com is redirected to Cloudflare's servers, but yourdomain.com (without www) is not. Since the SSL certificates we offer are valid for both yourdomain.com and www.yourdomain.com , there is no problem to redirect your HTTP traffic to Cloudflare's servers and at the same time direct your HTTPS traffic to the server where your SSL certificate is installed. To make the necessary changes for your OpenCart application, you need to edit the config.php files located in the OpenCart installation folder and in the admin folder. You need to modify the following lines and set them as follows: // HTTP define('HTTP_SERVER', 'http://www.yourdomain.com/'); define('HTTP_IMAGE', 'http://www.yourdomain.com/image/'); define('HTTP_ADMIN', 'https://yourdomain.com/admin/');   // HTTPS define('HTTPS_SERVER', 'https://yourdomain.com/'); define('HTTPS_IMAGE', 'https://yourdomain.com/image/'); Note that if you would prefer to have your SSL work via www.yourdomain.com and continue using Cloudflare, the only solution is to upgrade your Cloudflare account to Plus. This can be done from the Order section of your SiteGround User…

Cloudflare Challenge Page

Cloudflare gathers threat data from various sources to build a reputation for every visitor. You set the desired security level for your site and then Cloudflare stops any threats before they reach your site. Cloudflare's reputation-based security works as a first line of defense for your site. When a visitor's IP reputation is higher than the threshold set by the basic security level, the visitor's access is blocked and they are presented with the so-called challenge page where they need to fill in a CAPTCHA form if they want to proceed. If you don't want certain visitors/IPs to end up on that page, here's what you can do: Lower the basic security level. Use Threat Control and whitelist the visitor's IP. Ask the visitor to continue to fill out the CAPTCHAs and their "threat score" will decay over time. …