Managed transforms in Edge Security Acceleration (ESA) automatically add request Headers for client IP, geolocation, and TLS fingerprint, and add standard security response Headers.
How it works
After you enable managed transforms, ESA adds origin request Headers and security response Headers at points of presence (POPs):
-
HTTP request Headers (Client → ESA → Origin server): When a POP receives a client request, it adds the following HTTP request Headers before forwarding the request to the origin server:
Type
Included Headers
Description
Add real client IP Header
ali-real-client-ipRecords the originating IP address of the client that established the TCP connection. Added by ESA at the POP, this header is more reliable than
X-Forwarded-For, which can be forged by the client.Add visitor location header
-
ali-ip-country -
ali-ip-city
Adds the client's country/region and city codes based on IP geolocation. Values use ISO 3166-1 Alpha-2 codes. For example,
ali-ip-country=cnindicates the client is in the Chinese mainland.Add security request header
-
Tls-Hash -
Tls-Ja3 -
Tls-Ja4
Generates JA3 and JA4 TLS fingerprints from the client's handshake, used to identify client types or detect bots. Includes
Tls-Hash,Tls-Ja3, andTls-Ja4.The TLS fingerprint Headers have values only for sites on the Enterprise plan.
Account security risk information
Esa-User-RiskSends the account identifier and risk score to the origin server. Example:
account_name:test****@gmail.com;risk_coefficient:85, where account name istest****@gmail.comand risk score is 85. Automatically added after you enable the Account Security (ATO) feature. No configuration is needed on the Managed Transforms page. -
-
HTTP response Headers (ESA → Client): When ESA receives a response from the origin server, it adds standard security response Headers before returning the response to the client.
NoteIf the origin server's response already contains a same-name security header, ESA overwrites the origin value by default to ensure policy consistency.
Type
Included Headers
Description
Add security response Headers
x-content-type-options: nosniffPrevents MIME type confusion attacks by requiring the browser to strictly follow the
Content-Typeresponse header. Thenosniffvalue activates strict mode.x-xss-protection: 1; mode=blockProtects against reflected cross-site scripting (XSS) attacks, where malicious scripts are injected through URL parameters.
1enables XSS filtering;mode=blockprevents page rendering if an attack is detected.x-frame-options: SAMEORIGINPrevents clickjacking by restricting page embedding.
SAMEORIGINallows embedding only by same-origin pages. For example,example.compages can only be embedded in otherexample.compages.referrer-policy: same-originControls Referer header leakage to prevent exposing user behavior paths in cross-origin requests.
same-originsends the full Referer only for same-origin requests. The Referer is not sent for cross-origin requests.expect-ct: max-age=86400, enforceDetects abnormal certificates.
max-age=86400sets the policy validity to 24 hours.enforceforces the browser to reject connections that fail Certificate Transparency requirements.
Add client information to origin requests
Automatically add HTTP Headers containing the client's IP address, geolocation, and TLS fingerprint to origin requests, giving your origin application more client context.
Procedure
-
In the ESA console, choose Websites. In the Website column, click the target site.
-
In the navigation pane on the left, choose .
-
On the Transform Rules page, click the Managed Transforms tab.

-
Select the required Headers.
-
Add Real Client IP Header: Sends the
ali-real-client-ipheader with the client's originating IP address. Click Configure, turn on the Status switch, choose the defaultali-real-client-ipheader or add a custom header name, and click OK.
-
Add Visitor Location Headers: Sends the
ali-ip-countryandali-ip-cityHeaders, which allow the origin server to retrieve the client's country/region and city codes.
-
Add Security Request Headers: Sends Headers such as
Tls-Hash,Tls-Ja3, andTls-Ja4. The origin server can use these to identify client types or detect bots.
-
Result
To verify, monitor origin requests from ESA on your origin server and check the logs.
Before you enable the feature
Only basic request Headers are included.

After you enable the feature
After you enable Add Real Client IP Header, Add Visitor Location Headers, and Add Security Request Headers in ESA, the origin request includes Headers such as Ali-Ip-Country, Tls-Hash, Tls-Ja3, Tls-Ja4, Ali-Ip-City, and Ali-Real-Client-Ip.
Add security Headers to client responses
Automatically add standard security Headers to client responses to protect against XSS, clickjacking, and other attacks.
Procedure
-
In the ESA console, choose Websites. In the Website column, click the target site.
-
In the navigation pane on the left, choose .
-
On the Transform Rules page, click the Managed Transforms tab.

-
In the Add Security Response Headers section, turn on the switch to add security Headers to client responses.

Result
To verify, open your browser's developer tools, choose , and check the response Headers.
Before you enable the feature
Only basic response Headers are included.

After you enable the feature
After you enable Add Security Response Headers in ESA, the response includes the following Headers: expect-ct: max-age=86400, enforce, referrer-policy: same-origin, x-content-type-options: nosniff, x-xss-protection: 1; mode=block, and x-frame-options: SAMEORIGIN.
