Skip to main content

URL Access Profile

URL access profiles define URL filtering policies that control access to websites by category. The scm CLI provides commands to create, update, delete, and load URL access profiles.

Overview

The url-access-profile commands allow you to:

  • Create URL access profiles with category-based filtering actions
  • Update existing profile configurations including safe search and credential enforcement
  • Delete profiles that are no longer needed
  • Bulk import profiles from YAML files
  • Export profiles for backup or migration

Set URL Access Profile

Create or update a URL access profile.

Syntax

scm set security url-access-profile NAME [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEProfile nameYes

Options

OptionDescriptionRequired
--folder TEXTFolder locationNo*
--snippet TEXTSnippet locationNo*
--device TEXTDevice locationNo*
--description TEXTDescriptionNo
--block TEXTURL categories to block (can specify multiple)No
--alert TEXTURL categories to alert (can specify multiple)No
--allow TEXTURL categories to allow (can specify multiple)No
--credential-enforcement TEXTCredential enforcement as JSONNo
--cloud-inline-cat / --no-cloud-inline-catEnable cloud inline categorizationNo
--safe-search / --no-safe-searchEnable safe search enforcementNo

* One of --folder, --snippet, or --device is required.

Examples

Create Profile with Blocked Categories

$ scm set security url-access-profile strict-url \
--folder Texas \
--block adult \
--block malware \
--alert hacking
---> 100%
Created URL access profile: strict-url in folder Texas
$ scm set security url-access-profile safe-browsing \
--folder Texas \
--block adult \
--block gambling \
--safe-search \
--cloud-inline-cat
---> 100%
Created URL access profile: safe-browsing in folder Texas

Delete URL Access Profile

Delete a URL access profile from SCM.

Syntax

scm delete security url-access-profile NAME [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEProfile name to deleteYes

Options

OptionDescriptionRequired
--folder TEXTFolder locationNo*
--snippet TEXTSnippet locationNo*
--device TEXTDevice locationNo*
--forceSkip confirmation promptNo

* One of --folder, --snippet, or --device is required.

Example

$ scm delete security url-access-profile strict-url \
--folder Texas \
--force
---> 100%
Deleted URL access profile: strict-url from folder Texas

Load URL Access Profile

Load multiple URL access profiles from a YAML file.

Syntax

scm load security url-access-profile [OPTIONS]

Options

OptionDescriptionRequired
--file TEXTPath to YAML file containing profile definitionsYes
--folder TEXTOverride folder location for all profilesNo
--snippet TEXTOverride snippet location for all profilesNo
--device TEXTOverride device location for all profilesNo
--dry-runPreview changes without applying themNo

YAML File Format

---
url_access_profiles:
- name: strict-url
folder: Texas
description: "Strict URL filtering"
block:
- adult
- malware
alert:
- hacking

- name: safe-browsing
folder: Texas
description: "Safe browsing with search enforcement"
block:
- adult
- gambling
safe_search: true
cloud_inline_cat: true

Examples

Load with Original Locations

$ scm load security url-access-profile \
--file url-profiles.yaml
---> 100%
✓ Loaded URL access profile: strict-url
✓ Loaded URL access profile: safe-browsing

Successfully loaded 2 out of 2 URL access profiles from 'url-profiles.yaml'

Load with Folder Override

$ scm load security url-access-profile \
--file url-profiles.yaml \
--folder Austin
---> 100%
✓ Loaded URL access profile: strict-url
✓ Loaded URL access profile: safe-browsing

Successfully loaded 2 out of 2 URL access profiles from 'url-profiles.yaml'
note

When using container override options (--folder, --snippet, --device), all profiles will be loaded into the specified container, ignoring the container specified in the YAML file.

Show URL Access Profile

Display URL access profile objects.

Syntax

scm show security url-access-profile [NAME] [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEProfile name to display; omit to list allNo

Options

OptionDescriptionRequired
--folder TEXTFolder locationNo*
--snippet TEXTSnippet locationNo*
--device TEXTDevice locationNo*
--output, -o [table|json|yaml]Output format (default: table)No
--max-results INTEGERMaximum number of results to displayNo

* One of --folder, --snippet, or --device is required.

note

When no NAME is specified, all items are listed by default.

Examples

Show Specific Profile

$ scm show security url-access-profile strict-url \
--folder Texas
---> 100%
URL Access Profile: strict-url
Location: Folder 'Texas'
Description: Strict URL filtering
Block: adult, malware
Alert: hacking

List All Profiles (Default Behavior)

$ scm show security url-access-profile --folder Texas
---> 100%
URL Access Profiles in folder 'Texas':
------------------------------------------------------------
Name: strict-url
Description: Strict URL filtering
Block: adult, malware
------------------------------------------------------------
Name: safe-browsing
Description: Safe browsing with search enforcement
Safe Search: enabled
------------------------------------------------------------

Backup URL Access Profiles

Backup all URL access profile objects from a specified location to a YAML file.

Syntax

scm backup security url-access-profile [OPTIONS]

Options

OptionDescriptionRequired
--folder TEXTFolder to backup profiles fromNo*
--snippet TEXTSnippet to backup profiles fromNo*
--device TEXTDevice to backup profiles fromNo*
--file TEXTOutput filename (defaults to auto-generated)No

* One of --folder, --snippet, or --device is required.

Examples

Backup from Folder

$ scm backup security url-access-profile --folder Texas
---> 100%
Successfully backed up 4 URL access profiles to url_access_profile_folder_texas_20240115_120530.yaml

Backup with Custom Filename

$ scm backup security url-access-profile \
--folder Texas \
--file texas-url-profiles.yaml
---> 100%
Successfully backed up 4 URL access profiles to texas-url-profiles.yaml

Best Practices

  1. Block High-Risk Categories: Always block categories like malware, phishing, and command-and-control to protect against threats.
  2. Use Alert for Monitoring: Set categories to alert mode initially to monitor user behavior before enforcing blocks.
  3. Enable Safe Search: Use --safe-search to enforce safe search on search engines for compliance and content filtering.
  4. Enable Cloud Categorization: Use --cloud-inline-cat for real-time URL categorization of newly discovered websites.
  5. Backup Before Changes: Always backup existing profiles before making bulk modifications via load commands.