Escludi gli URL dall'analisi

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, puoi escludere gli URL dalla scansione utilizzando

L'uso dell'API di esclusione impedisce l'analisi di qualsiasi URL che corrisponda a un modello nell'array.

Esempio di JavaScript o TypeScript

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

Esempio di Java

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

Esempi di esclusione URL

URL Modello Escluso?
https://example.com/index.html example.com Falso
https://example.com/index.html https://*mple.com/index.html Vero
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/** Vero
https://example.com/index.html https://** Vero
https://example.com/index.html https://* Falso
https://example.com/index.html ** Vero
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/** Vero
https://example.com/index.html htt*/** Vero
https://example.com/index.html h*/example.com/** Vero
https://test.example.com/index.html https://*example.com/** Vero
https://test.example.com/index.html https://*.example.com/** Vero