Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleEngine Compatibility

This library has not yet been ported to the New Pico Engine

The Page Library

The Page library provides for access to environment variables. The Page library includes the functions env and url.

...

  • caller—the URL of the page on which the ruleset is evaluating
  • ip—IP number of the client
  • rid—the rulesetID
  • rule_version—version number of the ruleset. Not that these are monotonic, but not sequential.
  • title—the page title of the calling page.
  • txn_id—the transaction ID of this ruleset evaluation. 
Code Block
languagejavascript
themeConfluencelanguagejavascript
pre {
  ipAddr = page:env("ip");
}

...

  • protocolthe protocol scheme (e.g. http, https, etc.)
  • hostnamethe complete hostname (e.g. www.windley.com)
  • domainthe domain portion of the hostname (e.g. windley.com)
  • tldthe top-level domain of the hostname (e.g. com, org, net, etc.)
  • portthe port (defaults to 80 if unspecified)
  • paththe path portion of the URL (e.g. /archives/2008/07) 
  • querythe query string, if present (e.g. ?vxx=_ADJKLD&q=foo) 
Code Block
languagejavascript
themeConfluencelanguagejavascript
pre {
  pageProtocol = page:url("protocol");
}