std.ip()

An alias of std.str2ip().

We recommend using a fallback IP address that's meaningful for your particular Fastly service.

Format

IP
std.ip(STRING addr, STRING fallback)

Examples

1
2
3
if (std.ip(req.http.Fastly-Client-IP, "192.0.2.2") ~ my_acl) {
  ...
}