Excluir URLs del Análisis

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

Con Watcher, puedes excluir URLs de ser escaneadas usando

Usar la API de exclusión evita que cualquier URL que coincida con cualquier patrón en el arreglo sea analizada.

Ejemplo de JavaScript o TypeScript

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

Ejemplo de Java

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

Ejemplos de Exclusión de URLs

URL Patrón ¿Excluido?
https://example.com/index.html example.com Falso
https://example.com/index.html https://*mple.com/index.html Verdadero
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/** Verdadero
https://example.com/index.html https://** Verdadero
https://example.com/index.html https://* Falso
https://example.com/index.html ** Verdadero
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/** Verdadero
https://example.com/index.html htt*/** Verdadero
https://example.com/index.html h*/example.com/** Verdadero
https://test.example.com/index.html https://*example.com/** Verdadero
https://test.example.com/index.html https://*.example.com/** Verdadero