Exclure les URL de l'analyse

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

Avec Watcher, vous pouvez exclure les URL de l'analyse en utilisant

Utiliser l'API d'exclusion empêche toute URL qui correspond à un modèle de l'array d'être analysée.

Exemple JavaScript ou TypeScript

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

Exemple Java

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

Exemples d'exclusion d'URL

URL Modèle Exclu?
https://example.com/index.html example.com Faux
https://example.com/index.html https://*mple.com/index.html Vrai
https://example.com/index.html https://example.com Faux
https://example.com/index.html https://*.example.com Faux
https://example.com/index.html https://*.example.com/** Faux
https://example.com/index.html https://*example.com/** Vrai
https://example.com/index.html https://** Vrai
https://example.com/index.html https://* Faux
https://example.com/index.html ** Vrai
https://example.com/index.html *example.com/index.html Faux
https://example.com/index.html *example.com/** Faux
https://example.com/index.html */example.com/** Vrai
https://example.com/index.html htt*/** Vrai
https://example.com/index.html h*/example.com/** Vrai
https://test.example.com/index.html https://*example.com/** Vrai
https://test.example.com/index.html https://*.example.com/** Vrai