Web Connector 25.2
Web Connector Help

# ResourceUrlMustHaveRegex

The URL of a resource must match the specified regular expression, otherwise it is not downloaded.

Resources include stylesheets, JavaScript files, images, and other items that are used to construct a page. You can prevent the Web Connector ingesting documents for resources by setting parameters like UrlMustHaveRegex or ContentTypeMustHaveRegex, but the connector still downloads resources so that it can render pages correctly.

You can set this parameter to prevent the connector downloading resources, other than those specified, under any circumstances.

This parameter cannot be used to exclude pages (such as HTML files).

Type: | String
Default: |
Required: | No
Configuration Section: | TaskName or FetchTasks
Example: | The following example permits the connector to download resources, but only when the URL starts with `https://www.example.com`. (This could be used to exclude resources from other sites). `ResourceUrlMustHaveRegex=https://www\.example\.com.*`
See Also: | ResourceUrlCantHaveRegex

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Web Connector 25.2

Topic Title: ResourceUrlMustHaveRegex