Skip to content

Cloudflare bot fight mode and Google search

Blog
  • Ever since I moved the prior domain here to .Org, Iā€™ve experienced issues with Google Search Console in the sense that the entire website is no longer crawled.

    After some intensive investigation, it would appear that Cloudflareā€™s Bot Fight Mode is the cause. Essentially, this tool works at a js level and blocks anything it considers to be suspicious - including Googleā€™s crawler. Cloudflare will tell you that you can exclude the crawler meaning it is permitted to access. However, they omit one critical element - you need to have a paid plan to do so.

    With the Bot Fight Mode enabled, the website cannot be crawled

    ddd7fa3f-a9a6-4543-8aef-c86e7041493f-image.png

    And with it disabled

    81009e82-0be8-4524-b0e1-95b3c31280c5-image.png

    This also appears to be a well known issue

    https://community.cloudflare.com/t/bot-fight-mode-blocking-googlebot-bingbot/333980/6

    However, it looks like Cloudflare simply ā€œrespondedā€ by allowing you to edit the BFM ruleset in a paid plan, but if you are using the free mode, the only solution you have is to disable it completely. Iā€™ve done this, and yet, my site still doesnā€™t index!

    Iā€™ve completed disabled Cloudflare (DNS only) for now to see if the situation improves.

  • Edit - Iā€™ve re-enabled CF on this domain, but left BFM disabled šŸ™‚

  • Coming back here with an update. Iā€™ve actually disabled CF on this domain. Itā€™s been off for a couple of weeks, and honestly, thereā€™s zero difference.

    Itā€™s going to remain that way I thinkā€¦

  • Iā€™m not a systems guy at all, so in basic terms why is Cloudflare used?
    Yesterday someone had problem with their server and I took a look at it but was out of my depth with it. Some nginx issues, which I wasnā€™t sure how to fix
    In simple terms if you buy a domain, and have your own server, can you point one to another without using Cloudflare, or Nginx?

  • @Panda said in Cloudflare bot fight mode and Google search:

    Iā€™m not a systems guy at all, so in basic terms why is Cloudflare used?

    Cloudflare is used to act as a gateway or a proxy to your website. This has the immediate benefit of hiding your true IP address, making DDoS attacks much harder. Cloudflare isnā€™t a CDN (Content Delivery Network) in the traditional sense (although most people seem to think it is, but it doesnā€™t cache HTML content by default).

    Cloudflare offers numerous performance and security enhancements along with Layer 7 DDoS protection. Essentially, you can think of it as a security gateway where all traffic is examined for threats before being allowed through.

    However, in the same ilk, cyber criminals also hide behind Cloudflare to make their domain names look legitimate.

    @Panda said in Cloudflare bot fight mode and Google search:

    In simple terms if you buy a domain, and have your own server, can you point one to another without using Cloudflare, or Nginx?

    Yes, of course. You simply use DNS to create associated (A, WWW, etc) records to point to the IP address that will be hosting the content. Most people ā€œthinkā€ they need Cloudflare, when actually, they donā€™t. The free package has limitations, such as the amount of page rules you can create, and other features not being available that are in the Pro upwards (USD 20.00 per month - and itā€™s licensed per domain so you canā€™t just buy pro for example and use all of your domains in it) plan.

    As a final point, Cloudflare actually slows down traffic by adding extra checks, and headers, and ultimately also increases TTFB (Time to First Byte). Itā€™s basically a myth, but one everyone seems to have bought into. You can get the same level of protection with Open Source tooling and 80% best practice implementation if you want to invest the time.

  • and what about nginx?
    Might be me being dumb, but the linux file structure is confusing and I never know where to go to edit this nginx stuff, or what its doing.

  • @Panda said in Cloudflare bot fight mode and Google search:

    and what about nginx?

    NGINX is an web server application in itā€™s own right (borne out of the 10k issue with Apache where it suffers locks at around 10,000 concurrent sessions) which has a low footprint, yet is scalable no matter what you throw at it.

    @Panda said in Cloudflare bot fight mode and Google search:

    Might be me being dumb, but the linux file structure is confusing and I never know where to go to edit this nginx stuff, or what its doing.

    Linux uses the EXT file system (whereas Windows uses NTFS), and has itā€™s origins in UNIX. This means that Linux would use a path like /var/log/ whereas windows will use c:\windows\system32 for example. The Linux file system isnā€™t confusing, but can appear daunting to the uninitiated.

    NGINX under Linux is normally located in /etc/nginx but this is dependant on the Linux distribution (for example, under Ubuntu this would apply, but not always the case with Debian or Red Hat).

  • It is recommended to use nginx with docker OpenResty, the isolation of docker makes the environment very clean!I use the 1panel panel to manage these, and the visual management makes it so much easier for me!

  • @veronikya said in Cloudflare bot fight mode and Google search:

    It is recommended to use nginx with docker OpenResty, the isolation of docker makes the environment very clean!

    Thatā€™s a good question. The advantage of docker is the ability to isolate, but in my view, itā€™s clunky, and not necessary - particularly when you need two applications to talk to each other, or you want to add a website to an existing NGINX host for example - itā€™s not possible to add a docker instance to an existing server and this is what makes it unappealing for me.

    Yes, the environment is ā€œcleanā€, but not practical in most cases.

  • @phenomlab docker modifications are a pain in the ass, one wrong operation can result in total data loss, I made that mistake once and now I stick to manual deployment for important services

  • phenomlabundefined phenomlab forked this topic on
  • @phenomlab Weā€™re in the same boat, brother, which is why I choose to return to my Hosting NS after experiencing issues with even those tiny search engine bots. The issue depends on whether you want your website to resemble a corporate firm with few pages and a money-handling function; in that case, you can choose strong security, but for a community, itā€™s the opposite. But congrats on your siteā€™s good ranking!

  • @veronikya said in Cloudflare bot fight mode and Google search:

    docker modifications are a pain in the ass,

    I couldnā€™t have put that better myself - such an accurate analogy. I too have ā€œbeen thereā€ with this pain factor, and I swore Iā€™d never do it again.

  • phenomlabundefined phenomlab referenced this topic on

Related Topics
  • 3 Votes
    30 Posts
    1k Views

    @DownPW any update?

  • 4 Votes
    11 Posts
    721 Views

    @Hari Really? Can you elaborate a bit more here?

  • NodeBB socket with CloudFlare

    Unsolved Performance
    23
    1 Votes
    23 Posts
    2k Views

    @DownPW itā€™s your only realistic option at this stage.

  • 3 Votes
    4 Posts
    623 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.

  • how to use CF tunnels with Virtualmin?

    Solved Configure
    10
    3 Votes
    10 Posts
    1k 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.

  • 1 Votes
    2 Posts
    327 Views

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

  • Cloudflare now handling email routing, YAY šŸš€

    Configure
    1
    0 Votes
    1 Posts
    281 Views
    No one has replied
  • moving domain to google domains

    Configure
    6
    5 Votes
    6 Posts
    537 Views

    @hari Thatā€™s it. Yes. Nothing more to do