CrossDomainAccess
Controls the domain scope a job may follow from its starting hosts: only the main domain, include subdomains, or allow cross‑domain navigation.
| Name | Type | Description |
|---|---|---|
| AccessPolicy | CrossDomainAccessPolicies | Required. Cross-domain access policy |
Initialization String Format
An instance can be initialized with a string of the following format: AccessPolicy: <policy>
Examples
Creating a new instance initialized from a string:
DECLARE @crossDomainAccess wds.CrossDomainAccess = 'AccessPolicy: Subdomains';
SET @jobConfig.CrossDomainAccess = @crossDomainAccess;
Setting the job CrossDomainAccess from a string:
SET @jobConfig.CrossDomainAccess = 'AccessPolicy: Subdomains';;
CrossDomainAccessPolicies
Domain scoping modes that determine which hosts are in‑bounds while crawling.
Values
| Name | Description |
|---|---|
| None | No subdomain or cross-domain access. Only the main domain is allowed |
| Subdomains | The subdomains of the main domain are allowed (e.g., “example.com”, “sub.example.com) |
| CrossDomains | Allows access to any domain (e.g., “example.com”, “sub.example.com, another.com”) |