CDN 用戶操作
CDN User Guide
CDN User Guide
  • Domain Management
    • Add Domain
    • Batch Modify Upstream
    • Batch Remove Specific Domains
    • Export Site Records
  • Modules
    • Site Certificate
    • Token Auth
    • Custom Header
    • Redirects
    • CORS Setting
    • Proxy Rewrite
  • Site Settings
    • Cache Setting
    • Compress
    • Rates Limit
    • DNS API
    • Ports
  • Firewall
    • Whitelist Setting
    • Blacklist Setting
    • Positions Setting
    • Anti CC Setting
    • Interval Freq. Limit
    • Second Freq. Limit
    • User Agent Setting
  • ACL
  • Block List
  • Error Pages
  • Site Info.
Powered by GitBook
On this page
  • How to Set Up Custom Header
  • How to Apply Custom Headers?
  1. Modules

Custom Header

PreviousToken AuthNextRedirects

Last updated 6 months ago

How to Set Up Custom Header

  • Navigate to Sites -> Sites Settings -> Module -> Custom Header

  • Click Add Custom Header -> Enter a Custom Configuration Set Name

  • Enter the configuration set and select Add Custom Header

  • Configure the following settings, using these reference values:

    • Direction Control: Origin

    • URL Regular Expression: .*

    • Key: The header name desired by the customer

    • Value: $remote_addr

  • After configuration, when the CDN node fetches content from the origin, the Request Header will include test_header: 1.2.3.4 (where 1.2.3.4 is the client's IP address).

How to Apply Custom Headers?

  • Go to Sites -> Sites Settings -> Domains

  • Within Domains, click on the domain you wish to configure

  • Edit Domain -> Advanced Settings -> Custom Header -> Click to Apply