How do I protect my website against bots?

Do you have a web hosting or (Managed) WordPress package with $$BrandName$$? Then you are automatically protected against unwanted bot traffic. You do not need to activate anything.

Want to add extra rules yourself? Below, you can read what you can do with robots.txt and .htaccess, and why llms.txt does not provide complete protection.

To edit the files, you need an FTP connection to your hosting. Read our guide to connecting via FTP.

How do we protect your website?

Bots are programs that visit websites automatically. Some help search engines find your pages or check whether your website is still online. Others copy content on a large scale, look for vulnerabilities or put a strain on your website.

Our standard protection checks, among other things, whether a visitor behaves like a real browser. A bot that pretends to be Chrome but behaves differently is suspicious.

We handle traffic to your website as follows:

  • Regular visitors can visit your website normally.
  • Bots that clearly identify themselves, such as search engine bots and many monitoring tools, are not subject to the rules for fake browsers.
  • For suspicious traffic, we limit the number of requests within a given period.
  • Stricter limits apply to traffic that clearly imitates a browser or does not send any identification. This identification is called the User-Agent.
  • In the event of repeated abuse, we may block an IP address (temporarily).

Images, style files, JavaScript and other static files do not count towards these limits.

During an active attack, we may take stricter action. We continually refine the protection to slow down unwanted bots and let legitimate tools through.

AI crawlers are not blocked by default. We also look at the identification and behaviour of these bots.

Which error messages can a tool receive?

A script, integration or external service may receive one of these responses because of our protection:

  • 429 Too Many Requests: the tool sends more requests than allowed within a given period.
  • 426 Upgrade Required: the tool identifies itself as a very old browser that we no longer support.

During an active attack, we may also close the connection without returning a response or an error page.

You can find more information and possible solutions in our article: Why does your website return a 426 or 429 error?

Give bots instructions with robots.txt

With robots.txt, you give bots instructions about which parts of your website they may or may not visit. Trustworthy bots generally respect these instructions, but not all bots take them into account.

In this example, you ask GPTBot not to visit any part of your website.

Follow these steps in your FTP program and text editor

  1. Look for the robots.txt file in your website’s root folder. For your main website, this is the /www folder. Download the file and keep a backup copy. Does it not exist yet? Create a plain text file named robots.txt.
  2. Open the file in a text editor. Keep the existing rules and add this block. Is there already a block for GPTBot? Edit it instead of adding a second block
    User-agent: GPTBot
    Disallow: /
  3. Save the file and upload it to your website’s root folder.
  4. Open your website in your browser and add /robots.txt after your domain name. Check that you can see the new rules.

Do not use User-agent: * together with Disallow: / without careful consideration. This asks all bots, including search engine bots, to stop visiting your entire website.

Robots.txt is not access protection. Do not use it to shield confidential information. It also does not guarantee that a page will disappear from search results.

What does llms.txt do?

An llms.txt file is intended to help AI tools find and understand information on your website. For example, it contains a brief description of your website and links to important pages.

The file serves a different purpose from robots.txt:

  • robots.txt gives bots instructions about which pages they may visit.
  • llms.txt provides AI tools with an overview of useful content.

Llms.txt is not a security measure. It does not block bots, limit traffic or prevent AI services from using your content. You therefore do not need to create it to use our automatic bot protection.

Block a bot with .htaccess

On our classic Web Hosting packages, you can add extra access rules yourself via .htaccess. With Managed WordPress, you cannot edit this file yourself: we manage the server configuration.

The example below rejects requests in which the bot identifies itself as GPTBot. The bot then receives a 403 error. A bot that changes its identification can bypass this rule.

Follow these steps in your FTP program and text editor

  1. Look for the .htaccess file in your website’s folder. For your main website, this is the /www folder. For a subsite, open the /subsites folder and then that subsite’s folder. Download the file and keep a backup copy. Can you not see the file? Enable the display of hidden files in your FTP program.
  2. Open the file in a text editor. Add this block at the top, before any WordPress rules. Do not remove any existing rules.
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} GPTBot [NC]
    RewriteRule ^ - [F,L]
  3. Save the file and upload it to the same folder.
  4. Visit a few pages of your website and check that everything still works. Do you get an error message after the change? Restore your backup copy immediately.

Do not block generic names such as Mozilla or Chrome without careful consideration. Real browsers also use these names, so you could block regular visitors.

What should you do if a legitimate tool stops working?

Our automatic bot protection already takes widely used services into account, such as GTmetrix, NitroPack, Sendcloud, RankMath and various monitoring tools. However, a tool may still unintentionally run into a restriction.

Follow these steps if you experience problems with an external tool

  1. Collect the information our support team needs to investigate the problem:
    • The name of the tool or service.
    • The web address the tool tried to request.
    • The date and time when the problem occurred.
    • The full error message.
    • The tool’s IP addresses, if you know them.
  2. Do you manage the tool yourself? Follow the provider’s documentation to configure a recognisable User-Agent using the tool’s own name. Do not make the tool pretend to be a browser, even a recent version.
  3. Do you manage the tool yourself? Follow the provider’s documentation to configure a recognisable User-Agent using the tool’s own name. Do not make the tool pretend to be a browser, even a recent version.
  4. Can you not change this setting, or does the problem persist? Contact our support team and provide the information you collected.

Our support team can look up the requests concerned and check whether an exception is necessary. We assess each request individually.

Our automatic protection is separate from your own website settings. Does your robots.txt, .htaccess or security plugin block a crawler? An exception on our platform will not lift that block.

More info: Working with the .htaccess file

Updated on 24 November 2026
Was this article helpful?

Related Articles