Available in all subroutines.

Converts the IP address (IPv4 or IPv6) to a string.

The Domain Name Service (DNS) is not consulted, so the numeric form is returned.

The inverse conversion is available as std.str2ip.


if (std.ip2str(std.str2ip(req.http.Fastly-Client-IP, "")) ~ my_acl) {

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.