Skip to main content

Configure the Priority of the Access Control

Access control enables configuring priorities for blacklist, whitelist, and token secret access. Blacklist and whitelist include the following restriction items:

  • GEO Restriction
  • IP/Network Restriction
  • Anonymous IP Restriction

Case 1: Allow only clients from 1.1.1.0/32 to access /private/; the rest contents are accessible to public.

  • Create a blacklist policy: URL Path Prefix = /private/, priority weight = 1.
  • Create a whitelist policy: URL Path Prefix = /private/, priority weight = 2, and IP/Network Restriction = 1.1.1.0/32.

Case 2: Allow only clients from SG or MY, or from 1.1.1.0/32, to access /private/.

  • Create a blacklist policy: URL Path Prefix = /private/, priority weight = 1.
  • Create a whitelist policy: URL Path Prefix = /private/, priority weight = 2, and GEO Restriction = SG, MY.
  • Create another whitelist policy: URL Path Prefix = /private/, priority weight = 3, and IP/Network Restriction = 1.1.1.0/32.

Case 3: Allow only clients from Singapore/Malaysia or IPs under 1.1.1.0/32 to access /private/.

  • Create a blacklist policy: URL Path Prefix = /private/, priority weight = 1.
  • Create a whitelist policy: URL Path Prefix = /private/, priority weight = 2, with GEO Restriction = SG, MY and IP/Network Restriction = 1.1.1.0/32.