Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.1 KB

File metadata and controls

20 lines (14 loc) · 1.1 KB

MuxRuby::ReferrerDomainRestriction

Properties

Name Type Description Notes
allowed_domains Array<String> List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[&quot;&quot;]` A Single Wildcard `` entry means allow video playback requests from any domain * `[&quot;*.example.com&quot;, &quot;foo.com&quot;]` A list of up to 10 domains or valid dns-style wildcards [optional]
allow_no_referrer Boolean A boolean to determine whether to allow or deny HTTP requests without `Referer` HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a `Referer` HTTP header. Set this value to `true` to allow these playback requests. [optional][default to false]

Example

require 'mux_ruby'

instance = MuxRuby::ReferrerDomainRestriction.new(
  allowed_domains: null,
  allow_no_referrer: null
)