Khalsa Labs

Web Script, About You !!!

A very basic about you page is used to display the information about visitor,hence it tells the ip ,browser name , cookies etc….about user.These type of scripts are also used for track visitors etc.

Lets look inside the page about you……..
its amazing to know that only a few piece of code can describe you on the web ,its possible by using some server side scripting language, the clients side javascript also perform some useful functions for your identity.
A basic script for know about visitor:
(using php language)

echo "your ip address is: ".$_SERVER['REMOTE_ADDR']; // visitor's ip
echo "you are using: ", $_SERVER['HTTP_USER_AGENT']; // visitor's browser


(using asp language)

<%Response.Write(Request.ServerVariables("remote_addr"))%> 'visitor's ip
<%Response.Write(Request.ServerVariables("http_user_agent"))%> 'visitor's browser


you can also trace browser using javascript

<script type="text/javascript">


The following two tabs change content below.
Python Developer and DIY lover.

want to comment ??

Your email address will not be published. Required fields are marked *