ColdFusion Tutorial

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>!

ColdFusion Tutorial test

Remote Host ID - Welcome visitor from (yourhost)

Welcome, visitor from:
38.103.63.62

No User Comments.

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

Add your comments

Your Name*:
Your Email:
Site URL:
Site Name:
Comemt Title*:
Your Comment*:
Key Phrase*:
vQ0
Your IP Address: 38.103.63.62
 

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

[Home [Site Map [Privacy Statement [Site Feedback] [About ScandicWeb]


[ColdFusion [Flash [Search Engine Optimization [Graphics [Cascading Style Sheets (CSS) [JavaScript (JS) [Software]

Partner sites: ScandicSoft


Server time: 19. November 2008 Wednesday