URL's uitsluiten van analyse
Not for use with personal data
Met Watcher kunt u URL's uitsluiten van het scannen door gebruik te maken van
- (JavaScript of TypeScript)
excludeUrlPatterns - (Java)
setExcludeUrlPatterns()
Het gebruik van de exclude API voorkomt dat een URL die overeenkomt met een patroon in de array wordt geanalyseerd.
JavaScript of TypeScript Voorbeeld
axe: {
excludeUrlPatterns: [ 'https://*.example.com/**', 'https://example.org/**' ]
}Java Voorbeeld
AxeWatcherOptions options = new AxeWatcherOptions();
// Exclude login pages and admin dashboard
options.setExcludeUrlPatterns(new String[] {
"https://example.com/login*",
"https://example.com/admin/*"
});Voorbeelden van het uitsluiten van URL's
| URL | Patroon | Uitgesloten? |
|---|---|---|
https://example.com/index.html |
example.com |
Onwaar |
https://example.com/index.html |
https://*mple.com/index.html |
Waar |
https://example.com/index.html |
https://example.com |
Onwaar |
https://example.com/index.html |
https://*.example.com |
Onwaar |
https://example.com/index.html |
https://*.example.com/** |
Onwaar |
https://example.com/index.html |
https://*example.com/** |
Waar |
https://example.com/index.html |
https://** |
Waar |
https://example.com/index.html |
https://* |
Onwaar |
https://example.com/index.html |
** |
Waar |
https://example.com/index.html |
*example.com/index.html |
Onwaar |
https://example.com/index.html |
*example.com/** |
Onwaar |
https://example.com/index.html |
*/example.com/** |
Waar |
https://example.com/index.html |
htt*/** |
Waar |
https://example.com/index.html |
h*/example.com/** |
Waar |
https://test.example.com/index.html |
https://*example.com/** |
Waar |
https://test.example.com/index.html |
https://*.example.com/** |
Waar |
