Exclure les URL de l'analyse
Not for use with personal data
Avec Watcher, vous pouvez exclure les URL de l'analyse en utilisant
- (JavaScript ou TypeScript)
excludeUrlPatterns - (Java)
setExcludeUrlPatterns()
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 |
