chromium/components/policy/resources/templates/policy_definitions/Miscellaneous/CopyPreventionSettings.yaml

caption: Allows blocking copying to the clipboard on specified URLs
deprecated: true
desc: |-
  This policy is deprecated and will eventually be replaced by DataControlsRules.

  This policy blocks copying data to the clipboard on specific URLs.

  The <ph name="ENTERPRISE_CONNECTOR_ENABLE_FIELD">enable</ph> and <ph name="ENTERPRISE_CONNECTOR_DISABLE_FIELD">disable</ph> URL lists control which sites are allowed to write to the clipboard. A clipboard write is blocked if the URL matches a pattern in 'enable' and doesn't match a pattern in 'disable'. A copy is not blocked if the URL does not match any pattern.

  The origin matching patterns use a similar format to those for the '<ph name="URL_BLOCKLIST_POLICY_NAME">URLBlocklist</ph>' policy, which are documented at https://support.google.com/chrome/a?p=url_blocklist_filter_format.

  The <ph name="ENTERPRISE_CONNECTOR_MINIMUM_DATA_SIZE">minimum_data_size</ph> indicates the minimum amount of data in bytes that triggers the pattern check. This means that a clipboard write from a blocked URL would be allowed if the size of the copied data is smaller than the value specified in this field. The default value is 100 bytes if the field is unset.
example_value:
  disable:
  - not-sensitive.example.com
  enable:
  - '*'
  minimum_data_size: 100
features:
  cloud_only: true
  dynamic_refresh: true
  per_profile: true
future_on:
- fuchsia
owners:
- [email protected]
- [email protected]
schema:
  properties:
    disable:
      items:
        type: string
      type: array
    enable:
      items:
        type: string
      type: array
    minimum_data_size:
      minimum: 0
      type: integer
  type: object
supported_on:
- chrome.*:108-
- chrome_os:108-
tags: []
type: dict