Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tenbyte.io/llms.txt

Use this file to discover all available pages before exploring further.

Access rules let you control who can fetch content from your Tenbyte CDN distribution. Each rule scopes a set of policies (country, IP, referrer, and token authentication) to a path prefix or regex pattern, so different parts of your distribution can have different protections.

How access rules work

  • A distribution can have multiple access rules.
  • Each rule targets a URL pattern (prefix or regex).
  • Within a rule, you can enable any combination of the four policies below.
  • Requests that match the pattern must satisfy every enabled policy on that rule.
PolicyUse case
Country Access PolicyGeo-block or geo-allow regions
IP Access PolicyAllow or block specific IPs / CIDR ranges
Referrer Access PolicyStop hotlinking from other domains
Token AuthenticationIssue time-limited signed URLs for protected content

General Info

The General Info section defines the rule name, type, and matching pattern.
Info
  • Rule Name — unique identifier for the rule.
  • Rule Type — how the match pattern is interpreted:
    1. Prefix — applies to URLs that begin with the pattern.
    2. Regex — applies to URLs matching the regular expression.
  • Match Pattern — the path or pattern the rule applies to.
Spaces are not allowed, the pattern cannot start with *, and it must start with /.

Create an access rule

  1. Open CDNDistributions → select your distribution.
  2. Go to Access RulesAdd Access Rules.
  3. Fill in Rule Name, Rule Type, and Match Pattern.
  4. Toggle on the policies you want to enforce and configure each.
  5. Click Create Access Rules.