Escludi gli URL dall'analisi
Not for use with personal data
Con Watcher, puoi escludere gli URL dalla scansione utilizzando
- (JavaScript o TypeScript)
excludeUrlPatterns - (Java)
setExcludeUrlPatterns()
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 |
