---
agentTools:
  projectIndex: https://help.localizejs.com/llms.txt
---

# Disable Pages

Change what's detected and/or displayed on specific pages in your website.

[block:html]
{
  "html": "<div id=\"container\">\n    <span class=\"row-align-center\">\n      <span class=\"web-icon\" title=\"Localize For Web\"></span><span class=\"product-name\">Web</span>\n    </span>\n</div>"
}
[/block]

***

[block:api-header]
{
  "title": "Disable Localize by Page"
}
[/block]

If you don't want to display any translations on a page or subdirectory of your site, you can add it to this list in your Project's [Disable Pages Settings](https://app.localizejs.com/settings/project/disable-pages).

View this short video to learn how to use this feature.

[block:html]
{
  "html": "<iframe src=\"https://player.vimeo.com/video/475515886?h=3909d0745f\" width=\"640\" height=\"360\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen></iframe>"
}
[/block]

This is handy to use in conjunction with the [Disable Phrase Detection by Page](https://help.localizejs.com/docs/disable-pages#disable-phrase-detection-by-page) setting, so you can both stop content from being brought into the Localize dashboard and stop any translations from being displayed on that page.

* This will stop Localize from displaying the default language-switching widget on the page.
* No translations will be displayed on the page as well.
* Enter each page or subdirectory name separately by clicking the **Add Page** button.
* <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions" class="external-link" target="_blank">Regular expressions</a> are supported. You can select from:
  * **Exact Match** - enter the exact page or subdirectory name to exclude
  * **Starts With** - the page or subdirectory name starts with these characters
  * **Ends With** - the page or subdirectory name ends with these characters
  * **Contains** - the page or subdirectory name contains these characters
  * **Regular Expression** - for any other custom regex not supported above

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/ad28201-Regex_choices.png",
        "Regex choices.png",
        179,
        248,
        "#e5e5e5"
      ]
    }
  ]
}
[/block]

[block:callout]
{
  "type": "info",
  "title": "Don't include \"https://\"",
  "body": "When adding a URL or partial URL, don't include the \"https://\" part of the URL, otherwise, the filter will not work."
}
[/block]

After entering a page to disable, you can **Edit** the page or **Delete** it.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/90a0d44-Disable_Localize_by_Page_2a.png",
        "Disable Localize by Page 2a.png",
        701,
        279,
        "#f9f9f9"
      ]
    }
  ]
}
[/block]

To add a new page, click the **Add Page** button.

* Select a regex type from the list.
* Enter the relevant characters in the input field
* Click **Save**

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/890508c-Disable_Localize_by_Page_2b.png",
        "Disable Localize by Page 2b.png",
        698,
        346,
        "#f8f9f9"
      ]
    }
  ]
}
[/block]

For examples of custom Regular Expressions that you might want to use, and for more instructions, see the [Regular Expressions doc](https://developers.localizejs.com/docs/regular-expressions) in our Developer Docs.

[block:api-header]
{
  "title": "Disable Phrase Detection by Page"
}
[/block]

You can ignore parts of your website for which you won't be needing translations. This will help to keep unwanted phrases/content out of your Localize dashboard.

This is handy to use in conjunction with the [Disable Localize by Page](https://help.localizejs.com/docs/disable-pages#disable-localize-by-page) feature.

* <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions" class="external-link" target="_blank">Regular expressions</a> are supported. You can select from:
  * **Exact Match** - enter the exact page or subdirectory name to exclude
  * **Starts With** - the page or subdirectory name starts with these characters
  * **Ends With** - the page or subdirectory name ends with these characters
  * **Contains** - the page or subdirectory name contains these characters
  * **Regular Expression** - for any other custom regex not supported above

Simply add the areas that you would like to ignore using the instructions in the panel.

After entering a page to disable, you can **Edit** the page or **Delete** it.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/2d83a65-Disable_Phrase_Detection_by_Page_2a.png",
        "Disable Phrase Detection by Page 2a.png",
        704,
        356,
        "#f9f9f9"
      ]
    }
  ]
}
[/block]

To add a new page, click the **Add Page** button.

* Select a regex type from the list.
* Enter the relevant characters in the input field
* Click **Save**

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/37680b0-Disable_Phrase_Detection_by_Page_2b.png",
        "Disable Phrase Detection by Page 2b.png",
        703,
        423,
        "#f9f9f9"
      ]
    }
  ]
}
[/block]

For examples of custom Regular Expressions that you might want to use, and for more instructions, see the [Regular Expressions doc](https://developers.localizejs.com/docs/regular-expressions) in our Developer Docs.

[block:callout]
{
  "type": "info",
  "title": "Translating part of the page",
  "body": "You may have a case where you want the main navigation to still be translated on a page but not the body content of the page (e.g. blog posts). In this case, you would add that page/subdirectory to this list. Since the phrases found in the main navigation will be found on non-ignored pages, those translations will still be displayed on the page."
}
[/block]

[block:api-header]
{
  "title": "Disable Pages/Phrases from the Root of your Site (+ query string)"
}
[/block]

If you would like to disable any phrases from being found/translated in the root of your site including any query string parameters, set up the following filters in both the **Disable Localize by Page** and **Disable Phrase Detection by Page** settings.

1. Exact match: `example.com`
2. Starts with: `example.com?`
3. Starts with: `example.com/?`