Community Component 25.2
Community Component Help

# Configure View to Block Particular URLs or Hosts

By default, the View component attempts to access and process any URL or Web address that you send in the `Reference` action parameter for the `View` action. You can configure View to block certain URLs, host names or IP addresses. In this case, View does not process viewing requests for those URLs.

To configure View to block a URL or host

1. Open the View component configuration file in a text editor.

2. Find the `[Viewing]` section.

3. Decide which strategy to use to block URLs and hosts.

   - To specify lists of URLs or hosts to block, and allow all others, set one or both of the following parameters.

     `ViewBlockedURLsCSVs` | A comma-separated list of URLs that you want to block. You can use Wildcard values in the URLs. The View component matches the URL string, and does not retrieve files for any matching URLs. For example:
         ViewBlockedURLsCSVs=*restart*,*example.com,15.*.*.*
     This example blocks any URL that contains the string `restart`, and also blocks any Web address that ends with `example.com`, or an IP address that starts with `15`. It does not block the IP address that `example.com` maps to, or the name of a host that uses an IP address that starts with 15.
     `ViewBlockedHostCSVs` | A comma-separated list of IP addresses or host names that you want to block. View performs a host name lookup and blocks both the IP address and the host name. For example:
         ViewBlockedHostCSVs=12.34.56.78,www.example.com
     In this example, View blocks the IP address `12.34.56.78` and any host name that points to it. It also blocks `www.example.com` and the corresponding IP address.

   - To specify lists of URLs or hosts to allow, and block all others, set one or both of the following parameters.

     `ViewAllowedURLsList` | A comma-separated list of URLs that can be accessed to view documents. You can use wildcards. For example:
         ViewAllowedURLsList=example.com/doc/*,10.1.*.*
     This example would not allow access to a machine with an IP address `10.1.2.3` if a hostname was used in the URL instead of the IP address.
     `ViewAllowedHostsList` | A comma-separated list of hosts, specified by host name or IP address, that can be accessed to view documents. For example: `ViewAllowedHostsList=example.com:8080,12.34.56.78`

   TIP: For more complex scenarios, you can specify lists of URLs and hosts to allow, and lists of URLs and hosts to block. If a URL matches both a blocked list and an allowed list, it is blocked.

4. Save and close the configuration file.

5. Restart the View component for your changes to take effect.

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 Community Component 25.2

Topic Title: Configure View to Block Particular URLs or Hosts