Controlling access to hosts specified in a URL | HCL Digital Experience
By default, you can specify any host name in a URL used to retrieve content. However, you can restrict access to a specified list of host names by modifying the configuration of the WCM WCMConfigService service.
Procedure
- Log in to the WebSphere® Integrated Solutions Console.
- Click .Cluster note: If you are using this web content server as part of a cluster, ensure that you use the WebSphere® Integrated Solutions Console for the deployment manager when you edit configuration properties.
- Update the configuration to block access from unknown hosts.
Specify the following property:
- Property name:
connect.connector.httpconnector.denyunknownhosts
- Value:
true
- Property name:
- For each host name for which you want to grant access, add
property.Use the following format for new properties:
- Property name:
connect.connector.httpconnector.hosts.host_name
, wherehost_name
is the fully qualified host name of the server for which you want to grant access. For example:connect.connector.httpconnector.hosts.www.example.com
- Value:
true
orfalse
- Property name:
- Optional: Specify a default cache expiration
value for the host name you added by adding a property. Use the following format for new properties:
- Property name:
connect.connector.httpconnector.hosts.host_name.defaultcacheexpires
, wherehost_name
is the fully qualified host name of the server for which you want to grant access. For example:connect.connector.httpconnector.hosts.www.example.com.defaultcacheexpires
- Value:
expiration_time
. For example:REL 9000s
- Property name:
- Optional: Specify a default cache setting for
the host name you added by adding a property. Use the following format for new properties:
- Property name:
connect.connector.httpconnector.hosts.host_name.defaultcache
, wherehost_name
is the fully qualified host name of the server for which you want to grant access. For example:connect.connector.httpconnector.hosts.www.example.com.defaultcacheexpires
- Value:
true
orfalse
- Property name: