URL を解析から除外する
Not for use with personal data
Watcher を使うと、
- (JavaScript または TypeScript)
excludeUrlPatterns - (Java)
setExcludeUrlPatterns()を使用して、URL をスキャンから除外できます。
exclude API を使用すると、配列内のあらゆるパターンに一致する URL が分析されないようにできます。
JavaScript または TypeScript の例
axe: {
excludeUrlPatterns: [ 'https://*.example.com/**', 'https://example.org/**' ]
}Java の例
AxeWatcherOptions options = new AxeWatcherOptions();
// Exclude login pages and admin dashboard
options.setExcludeUrlPatterns(new String[] {
"https://example.com/login*",
"https://example.com/admin/*"
});URL 除外の例
| URL | パターン | 除外された? |
|---|---|---|
https://example.com/index.html |
example.com |
偽 |
https://example.com/index.html |
https://*mple.com/index.html |
真 |
https://example.com/index.html |
https://example.com |
偽 |
https://example.com/index.html |
https://*.example.com |
偽 |
https://example.com/index.html |
https://*.example.com/** |
偽 |
https://example.com/index.html |
https://*example.com/** |
真 |
https://example.com/index.html |
https://** |
真 |
https://example.com/index.html |
https://* |
偽 |
https://example.com/index.html |
** |
真 |
https://example.com/index.html |
*example.com/index.html |
偽 |
https://example.com/index.html |
*example.com/** |
偽 |
https://example.com/index.html |
*/example.com/** |
真 |
https://example.com/index.html |
htt*/** |
真 |
https://example.com/index.html |
h*/example.com/** |
真 |
https://test.example.com/index.html |
https://*example.com/** |
真 |
https://test.example.com/index.html |
https://*.example.com/** |
真 |
