Every web site owner wants to know more about their visitors to improve their site.
Using some simple ASP scripting, you can gather some basic information about your site visitors
Using your text editor program, create a new file and name it info.asp. Make sure to give the file the .asp extension so the server will know that the pages has server scripts to process.
I will post all ASP Commands in the very last step so you can copy/paste the script into your page.
Type this line:
<%Response.Write(Request.ServerVariables("http_user_agent"))%>
OR
<%=Request.ServerVariables("http_user_agent")%>
the <%= is equivalent to the Response.Write command
It will show you basic information about the visitors browser.
be sure to add line breaks or paragraph tags to separate you information:
Type this line:
<%Response.Write(Request.ServerVariables("remote_host"))%>
OR
<%=(Request.ServerVariables("remote_host")%>
To show your visitors IP address.
Type this line:
<%=Request.ServerVariables("ALL_RAW")%>
Will give you all the browser information about your visitor.
Save the file
Upload this file to your web server
call this file in your web browser as:
http://yoursitename.com/info.asp
See all the information that you can gather using this script.
All commands:
<%=Request.ServerVariables("http_user_agent")%>
<%= Request.ServerVariables("remote_addr")%>
<%= Request.ServerVariables("ALL_RAW")%>
No comments:
Post a Comment