Introduction
Motto offers geo-blocking protection rules as a way to prevent your end-users from viewing your content from regions where you may not have the rights to publish it.Get Started
You can get started using the Motto Studio, which we recommend for non-technical users. Alternatively, you may get started by using the Motto API.Via the Studio
Via the Studio
To enable geo-blocking, first navigate to the “Settings” section in the Motto Studio, and select the “Video protection” tab.
Here you can create a new ruleset by clicking the “New ruleset” button, or edit an existing ruleset if you are
already applying other protection measures to the same content.In the creation form, you can check the option to enable geo-restrictions. You can then select a list of
countries that you wish to allow or disallow playback from.
Via the API
Via the API
To enable geo-blocking, you must create a video protection ruleset with the
geo_restrictions_allow
or geo_restrictions_disallow
array populated (not both).Each element should contain a two-character country code following the ISO 3316-1 alpha-2 standard, e.g. US
or FR
.
These country codes represent where a viewer is (or is not) allowed to watch from, respectively.You may change these settings at any time, even while a stream is already live. New rules will take roughly one minute to lodge.
However, users already viewing your stream may not be affected until they reload the page or app.