Remote Host ID - Welcome visitor from (yourhost)

You've probably seen web pages that welcome you with a message like "Hello, visitor from (yourhost)", where (yourhost) is your actual hostname or the IP address. Or your IP Address nnn.nnn.nnn.nnn will be recorded for security.

First, some words about REMOTE_HOST:
The REMOTE_HOST is the internet name of the remote client. If the name of the client can not be determined, the variable returns the IP address (or number) of the client. The REMOTE_HOST does not include the name of the client. It only holds the IP address, so the web server should issue a reverse lookup towards the DNS server to determine the IP name of the client.

 

Here is an easy example of how to do that:

<h2>Hello!</h2>
Welcome, visitor from <cfoutput>#REMOTE_HOST#</cfoutput>!

Advertisement

Hot Offer

No User Comments.

No User Comments, be the first one to write your comments?

ApplayIT is owned by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.