Welcome to the Cookbook

loading...

5.5.3 Obtaining Additional Client Information

getClientIP()

Get the remote client IP address

getReferrer()

Returns the domain name from which the request originated

getAjaxVersion()

Gets Prototype version if call is Ajax, otherwise empty string. The Prototype library sets a special "Prototype version" HTTP header.