1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to whitelist or blocklist URLs using the Job for Chrome Configuration

How to whitelist or blocklist URLs using the Job for Chrome Configuration

When adding Chrome via the Play Store, we have the opportunity to customize the Chrome settings. However, when adding Chrome via an apk, URL, or both, this option is not available.It is possible to configure the apps even if they were not added to the Play Store. When an app is added to the SureMDM App Store, it should offer configuration options.

Purpose

The purpose of this knowledge article is to provide a guide on how to configure Google Chrome settings, such as allowing or blocking URLs, using a runscript job.

Prerequisites

  • Google Chrome and SureMDM with Device Owner enrollment.

Steps

  1. Login to the SureMDM console.
  2. Navigate to the Jobs section.
  3. Click on New Job and select the Operating System as Android.
  4. Choose a Run Script job.
 !#suremdm   applyAppRestrictions(com.android.chrome,[{"Key":"URLBlocklist","Type":"string","Value":"*"},{"Key":"URLAllowlist","Type":"string","Value":"https://www.42gears.com/"}])

NOTE:

  • * indicates it will blocklist the rest of the websites, but if we enter https://www.42gears.com from the browser, it will be accessible.
  • If we want to block YouTube, the below script can be used.
  1. Enter the Job Name and Save it.
  2. In the Apply Job/Profile to Device prompt, select the job and click Apply.
  3. Select the device from the console, click on Apply, and select the newly created runscript job.

Need more help? Here’s how to get help from our experts. 

CONTACT US

Was this helpful?
YesNo
Updated on August 2023