Skip to content

Best Cloudflare settings for woo commerce

Solved WordPress
  • Hello sir, happy new year.

    i have recently signed up for Cloudflare APO for WordPress and i see a huge speed improvement.

    due to cache woocommerce currency switching and flarum login is not functioning properly, i would like to add a page rule and whitelist both directories to avoid cache issues

    i have entered URL as .domain.com/wooCommerce/ and .domain.com/flarum/ now should I set them to bypass or no query string? or ignore query string?

    when i use bypass setting it takes lot of time to load, i want to utilize CF cache but at the same time i don’t want it to cache dynamic related files.

    af5fcbd7-0380-4cbc-9ced-f7ac81c97b48-image.png

  • @hari the cache level for woocommerce should always be bypass. Any caching of woocommerce will cause you serious issues and will result in the checkout process not functioning correctly.

    This does mean that the overall experience will be slower (depending on geographic location) although CF is known to cause significant issues hence the need to bypass.

    If you want to cache as much as possible, then set rules to bypass caching on the cart and account pages etc.

  • Hariundefined Hari has marked this topic as solved on

Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation 💗

  • 0 Votes
    1 Posts
    20 Views
    No one has replied
  • 3 Votes
    30 Posts
    415 Views

    @DownPW any update?

  • 2 Votes
    11 Posts
    326 Views

    Thanks for your inputs ♥️

  • 0 Votes
    10 Posts
    382 Views

    I found it here, ins elements can not have aria elements

  • 3 Votes
    4 Posts
    280 Views

    @DownPW yeah, I seem to spend a large amount of my time trying to educate people that there’s no silver bullet when it comes to security.

  • 1 Votes
    2 Posts
    258 Views

    @Hari I think you’re referring to this

    https://sudonix.com/topic/170/creating-posts-from-rss-feeds-in-flarum

    However, this code was never designed to work with WordPress, but you could leverage the WP-CLI to do something similar without too much effort.

  • 3 Votes
    10 Posts
    758 Views

    @Hari DDoS protection is not just a switch, or one component. It’s a collection of different and often disparate technologies that when grouped together form the basis of a combined toolset that can be used in defence.

    Typically these consist of IDS (Instrusion Detection System) and IPS (Intrusion Prevention System) components that detect irregularities in network traffic, and will take decisive action based on predefined rulesets, or in the case of more modern systems, AI and ML.

    Traditional “traffic shaping” technology is also deployed, so if an attack cannot be easily identified as malicious, the bandwidth available to that connection is severely limited to nothing more than a trickle rather than a full flow.

    Years ago, ISP’s used traffic shaping (also called “policers”) as an effective means of stopping applications such as BearShare, eDonkey, Napster, and other P2P based sharing systems from functioning correctly - essentially reducing the “appeal” of distributing and seeding illegal downloads. This was essentially the ISP’s way of saying “stop what you are doing please” without actually pulling the plug.

    These days, DDoS attacks are designed to overwhelm - not assume control of - webservers and other public facing components. It’s rare for small entities to be attacked unless there is some form of political agenda driven by your site or product. A classic example is governmental institutions or lawmakers who effectively are classed as “enforcers” and those who disagree are effectively making a statement in the form of Denial of Service.

    DDoS protection is effectively the responsibility of the hosting provider, but you shouldn’t just assume that they will protect you or your site. Their responsibility stops at their infrastructure, so it’s then up to you too decide how you full the gap in between your host and the website.

    Typically, you’d leverage something like Imunify360 which you can get for Plesk (and something I’d strongly recommend) but it’s not free, and is a paid (not expensive per month) subscription. If you want to use VirtualMin then there are a variety of tools readily available out of the box such as firewalls and fail2ban.

  • 52 Votes
    87 Posts
    7k Views

    @Hari Glad to see this went so well, and that you’ve finally departed the Flarum ecosystem 🙂