> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.seotesting.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Ignore Page Sections Using XPath in InternalLinking

Use these steps to exclude sections like headers, footers, or sidebars from an internal link report using XPath.

Identify the Section to Exclude

Open the page in Google Chrome:

![](https://storage.crisp.chat/users/helpdesk/website/343dcfd35d951400/article-on-seotesting-blog_1r1a8xr.png)

Right-click the section of your page that you want to ignore (e.g., header, footer) and select ‘Inspect’ on the menu that appears:

![](https://storage.crisp.chat/users/helpdesk/website/343dcfd35d951400/browser-context-window_1uagbfj.png)

## Copy the Full XPath

In Developer Tools (which opens once you click ‘Inspect’ as detailed above), right-click the element that you wish to exclude from your InternalLinking report when it is highlighted. This indicates that you have selected the right section.

Select Copy > Copy Full XPath:

![](https://storage.crisp.chat/users/helpdesk/website/343dcfd35d951400/how-to-copy-full-xpath_1pjnf.png)

## Add XPath to Exclusion List in InternalLinking

Click on ‘+ Advanced options’ in your report settings:

![](https://storage.crisp.chat/users/helpdesk/website/343dcfd35d951400/internallinking-advanced-optio_7ceoip.png)

Paste the copied XPath into the text box that appears, and click on the plus icon to the right of the text box:

![](https://storage.crisp.chat/users/helpdesk/website/343dcfd35d951400/internallinking-xpath-example-_1ht8fy.png)

Be sure to click the green ‘+’ icon. Otherwise, the XPath exclusion will not be considered when the report runs.

Once you have added the XPath and clicked on the plus icon, the XPath exclusion will be added to the report:

![](https://storage.crisp.chat/users/helpdesk/website/343dcfd35d951400/internallinking-xpath-example-_1a7yrl0.png)

You can repeat this process for as many page sections as you wish:

![](https://storage.crisp.chat/users/helpdesk/website/343dcfd35d951400/internallinking-xpath-example-_10fwywe.png)

Click on the ‘Create’ button and the report will generate, with the XPaths excluded: