$ip_addr = $ENV{'REMOTE_ADDR'}; $host_name = gethostbyaddr(inet_aton($ip_addr), AF_INET); $req_method = $ENV{'REQUEST_METHOD'};