Your I.P. Address Is: 38.107.179.239
Your Browser/Platform Is:
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)

Your visitor's I.P. address, Browser Version and a number of other 'interesting' things about the visitor and the server environment are available for use on your web pages. You can access the values in these Serever Side Variable by using Server Side Includes.

Popular scripting languages like JavaScript, PHP, PERL and Python will provide access to this information, but you can use Server Side Includes without any programming or scrpting knowledge at all. They just 'drop' right into your HTML.

Most Web Hosts allow access to Server Side Includes though their use may be restricted for security reasons.

I have created a simple Web page that you can download HERE and then upload to your host to see if your host supports Server Side Includes.

First, however, you must meet a few conditions.

The box at the top of the page shows your I.P. Address, and some information about your browser and operating system. The HTML Code used to produce that box is shown below. The Server Side Includes are shown in Green

 


Your I.P. Address Is: <!--#echo var="remote_addr" -->
<br />
Your Browser/Platform Is: <!--#echo var="http_user_agent" -->


 

Here's what the above code means.

The command echo tells the browser to send the contents of what follows it to the visitor's browser screen.

We then indicate which Server Side Variable (var) to display.

First is remote_addr, which represents the IP Address of the remote visitor's connection to the server, followed by http_user_agent which holds the visitor's Web browser and system information.

You will notice that the includes are enclosed in what appears to be HTML Comment Tags with an added hash tag (#)

The added Hash Tag, however, does not change the behaviour of the comment tags, creating the only inconvenience in working with Server Side Variables - you can't see them in WYSIWYG HTML editors inless you have "Display Comments" turned on..

 

To use these handy variables merely include the code from the left side of the table to produce the results on the right side. Again, they look like Comments, and will not display locally, ONLY when you view the page on the server.

NOTE: For secrity purposes some of the available variables are not shown.

 

   This Code in This .shtml File Returns This From Our Server   
<!--#echo var="auth_type" -->  (none)
<!--#echo var="content_length" -->  (none)
<!--#echo var="content_type" -->  (none)
<!--#echo var="date_local" -->  Saturday, 19-May-2012 17:56:05 CDT
<!--#echo var="date_gmt" -->  Saturday, 19-May-2012 22:56:05 GMT
<!--#echo var="document_name" -->  server_vars.shtml
<!--#echo var="document_root" -->  /home/theeggle/public_html
<!--#echo var="document_uri" -->  /writing/server_vars.shtml
<!--#echo var="forwarded" -->  (none)
<!--#echo var="from" -->  (none)
<!--#echo var="gateway_interface" -->  CGI/1.1
<!--#echo var="http_cache_control" -->  no-cache
<!--#echo var="http_connection" -->  close
<!--#echo var="http_form" -->  (none)
<!--#echo var="http_host" -->  www.seggleston.com
<!--#echo var="http_referrer" -->  (none)
<!--#echo var="http_ua_color" -->  (none)
<!--#echo var="http_ua_cpu" -->  (none)
<!--#echo var="http_ua_os" -->  (none)
<!--#echo var="http_ua_pixels" -->  (none)
<!--#echo var="http_user_agent" -->  CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
<!--#echo var="http_x_forwarded_for" -->  (none)
<!--#echo var="instance_id" -->  (none)
<!--#echo var="last_modified" -->  Tuesday, 24-Apr-2012 12:10:31 CDT
<!--#echo var="page_count" -->  (none)
<!--#echo var="path" -->  /sbin:/usr/sbin:/bin:/usr/bin
<!--#echo var="path_info" -->  (none)
<!--#echo var="path_translated" -->  (none)
<!--#echo var="query_string" -->  
<!--#echo var="query_string_unescaped" -->  (none)
<!--#echo var="remote_addr" -->  38.107.179.239
<!--#echo var="remote_host" -->  (none)
<!--#echo var="remote_ident" -->  (none)
<!--#echo var="remote_port" -->  37149
<!--#echo var="remote_user" -->  (none)
<!--#echo var="request_method" -->  GET
<!--#echo var="request_uri" -->  /writing/server_vars.shtml
<!--#echo var="script_filename" -->  /home/theeggle/public_html/writing/server_vars.shtml
<!--#echo var="script_name" -->  /writing/server_vars.shtml
<!--#echo var="script_uri" -->  (none)
<!--#echo var="script_url" -->  (none)
<!--#echo var="server_admin" -->  webmaster@theegglestongroup.com
<!--#echo var="server_addr" -->  69.65.3.173
<!--#echo var="server_name" -->  www.seggleston.com
<!--#echo var="server_port" -->  80
<!--#echo var="server_protocol" -->  HTTP/1.1
<!--#echo var="server_signature" -->  
<!--#echo var="server_software" -->  Apache
<!--#echo var="total_hits" -->  (none)
<!--#echo var="tz" -->  (none)
<!--#echo var="unique_id" -->  T7glBUVBA60AB9Cy4D8AAAAH
<!--#echo var="visp_domain" -->  (none)
<!--#echo var="visp_remote_addr" -->  (none)
<!--#echo var="visp_user" -->  (none)