Excluir URLs da Análise

This page is not available in the language you requested. You have been redirected to the English version of the page.
Link to this page copied to clipboard
Not for use with personal data

Com o Watcher, você pode excluir URLs de serem escaneadas usando

Usar a API de exclusão impede que qualquer URL que corresponda a algum padrão na matriz seja analisada.

Exemplo em JavaScript ou TypeScript

axe: {
  excludeUrlPatterns: [ 'https://*.example.com/**', 'https://example.org/**' ]
}

Exemplo em Java

AxeWatcherOptions options = new AxeWatcherOptions();
// Exclude login pages and admin dashboard
options.setExcludeUrlPatterns(new String[] {
    "https://example.com/login*",
    "https://example.com/admin/*"
});

Exemplos de Exclusão de URLs

URL Padrão Excluído?
https://example.com/index.html example.com Falso
https://example.com/index.html https://*mple.com/index.html Verdadeiro
https://example.com/index.html https://example.com Falso
https://example.com/index.html https://*.example.com Falso
https://example.com/index.html https://*.example.com/** Falso
https://example.com/index.html https://*example.com/** Verdadeiro
https://example.com/index.html https://** Verdadeiro
https://example.com/index.html https://* Falso
https://example.com/index.html ** Verdadeiro
https://example.com/index.html *example.com/index.html Falso
https://example.com/index.html *example.com/** Falso
https://example.com/index.html */example.com/** Verdadeiro
https://example.com/index.html htt*/** Verdadeiro
https://example.com/index.html h*/example.com/** Verdadeiro
https://test.example.com/index.html https://*example.com/** Verdadeiro
https://test.example.com/index.html https://*.example.com/** Verdadeiro