In this article, you'll learn how to exclude specific URLs from being translated on your website.
Using Weglot, you can exclude certain pages from being translated. These pages will remain untranslated.
Exclude URLs using Exclusion Rules
To exclude a URL, navigate to your Weglot Dashboard > Use the menu at the top left to select your workspace > Select your project, and go to the "Exclusions" section.

Click on the "Add an exclusion rule" button. Add the relative URL of the page you wish to exclude. For instance, for www.mywebsite.com/seo-manually, only add its relative URL: /seo-manually.

You can set URL exclusions using different options.

- Starts with: Excludes all pages with a slug starting with the input.
- Does not start with: Excludes all pages with a slug that does not start with the input.
- Ends with: Excludes all pages with a slug ending with the input.
- Does not end with: Excludes all pages with a slug that does not end with the input.
- Is exactly: Excludes the page with a slug identical to the input.
- Is not exactly: Excludes all pages with a slug that is not identical to the input.
- Contains: Excludes all pages with a slug containing the input.
- Does not contain: Excludes all pages with a slug that does not contain the input.
- Matches regex: Excludes pages matching the regex input.
You can choose to exclude the URL for all languages or only specific ones. If you need to exclude the page for all languages, the dedicated space should be left empty.
You can also decide to hide the switcher on the excluded page:

Note: If you use the SquareSpace integration, this option is not available.
To exclude more URLs, click "Add Rule" and repeat the steps.
Note: Excluding a page does not automatically delete the translations already generated. To remove them, activate the "Delete translations linked to matching URLs" option in your exclusion rule.
Exclude blocks
To exclude a specific part of your website, go to your Weglot Dashboard > Use the menu at the top left to select your workspace > Select your project, and go to the "Exclusions" section.
Click on the "Add Rule" button.
Paste the CSS selector of the block you want to exclude in the "Blocks to exclude":

To find the CSS selector:
Right-click on the element and select "Inspect element".
Use the arrow on the top left of the console to target the element you want to exclude.

Right-click on the element, and select "Copy" > "Copy selector".

Paste the selector in the "Blocks to exclude".
You can add multiple selectors. The content will not be translated into any language.
Note: Weglot does not automatically remove translations related to excluded blocks. You'll need to delete these translations manually.
Translation rules / Guidelines
With Weglot, you can create rules to ensure that some words are not translated.
Note that they will still be counted in your wordcount.
First, go to your Weglot Dashboard > Select a project > Go to “Guidelines” on the left:

You can use a suggested guideline by clicking on the “+” on its right:

In our case, examples 2 and 3 are more relevant. If you click on one of the “+”, you will see this:

Replace “TERM” with the word you don't want to translate.
Note that you can also add other guidelines directly in the text field.
Click on “Apply x guideline(s)”.
If you want to create your own guidelines, you can do so by clicking on these options:

Then, you'll see this pop-up:

In the first section, you can enter different guidelines to have the translations the most adapted to the ones you want.
You can look at our writing tips to help you find guidelines ideas.
In the “Apply to” section, you can indicate the targeted languages.
Click on “Apply x guidelines” and they will be added to your guidelines list.
You can delete a rule at any moment by clicking on the trash icon on the right-hand side of the rule.
- Translation rules will only be applied to your automatic translations, not manually-edited ones.
- Translation rules do not prevent the translations from being generated and counted in your Current Word Usage. You must exclude the URL of the page to exclude some content from the translation. See: How to exclude URLs/blocks/words from the translation.
- If a Glossary rule matches a whole translation, this translation will be marked as manually edited. However, if a rule matches only a part of a translation, this translation will remain marked as automatic.