# Source: https://docs.chatling.ai/knowledge-base/exclude-webpage-sections.md

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatling.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Exclude webpage sections

> Learn how to exclude certain sections of a webpage when adding a data source.

Websites often contain a lot of information that may not be relevant to the AI. When you add webpages to the knowledge base, you can exclude certain sections of the page from being crawled and indexed by the AI.

This can be useful for removing irrelevant information as well as preventing unnecessary characters from being counted towards your plan's limit.

## How to exclude sections of a webpage

1. Go to the `Knowledge Base`.
2. Click the `New Data Source` or `Add new` button.

<img src="https://chatling-assets.b-cdn.net/add-data-to-new-knowledge-base.jpg" />

3. Select `Website`, `Sitemap`, or `URL list` as the data source type.
4. Click the `Advanced Settings` button.

<img src="https://chatling-assets.b-cdn.net/new-website-data-source-advanced-settings.jpg" width="500" />

5. You can exclude sections by entering the HTML classes or IDs of the elements you want to exclude. You must press Enter after each class or ID to add it to the list.

You can also select the HTML tags you want to remove, such as `header` or `footer`.

<img src="https://chatling-assets.b-cdn.net/new-website-data-source-advanced-settings-1.png" width="500" />

You can now go ahead with entering the website, sitemap, or list of URLs that you want to add to the knowledge base. The crawler will exclude the sections you specified.