Go Back   TechArena Community > Technology > Technology & Internet
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to find IP address of a website visitor

Technology & Internet


Reply
 
Thread Tools Search this Thread
  #1  
Old 07-05-2009
Member
 
Join Date: Feb 2009
Posts: 56
How to find IP address of a website visitor
  

hello friends,

I am managing a website and everyday many users visit my website for the information they need. Is there anyway I can find the IP address of my website visitors ? how can I find that ? This is for security reasons.....
plz help me giving some ideas......thanks

Reply With Quote
  #2  
Old 07-05-2009
Member
 
Join Date: Apr 2008
Posts: 2,279
Re: How to find IP address of a website visitor

To view the IP address of a visitor on your site, add this code in the area where you want it displayed.

<?

echo $ _SERVER [ "REMOTE_ADDR"];

>
Reply With Quote
  #3  
Old 07-05-2009
Member
 
Join Date: May 2008
Posts: 2,785
Re: How to find IP address of a website visitor

Finding the IP address of your website visitors may be useful for many reasons, such as tracking site usage or blocking access to specific people.

Here's how you can find it.
In an ASP page, within the ASP tags, <% ... %>, you can retrieve the IP address of a user through the ServerVariables collection of the Request object. To do this, you use the code Request.ServerVariables("REMOTE_ADDR")

<%@language="VBScript"%>
<%
Response.Write "Hello! Your IP Address is: " & Request.ServerVariables("REMOTE_ADDR")
%>
Reply With Quote
Reply

  TechArena Community > Technology > Technology & Internet
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to find IP address of a website visitor"
Thread Thread Starter Forum Replies Last Post
How to Find IP Address of computer with the MAC address OhhLaLaLa Networking & Security 10 30-12-2011 09:25 PM
How to open the website by using the IP address? AlandraJ Technology & Internet 6 30-12-2011 09:24 PM
Find Best Keyword For Website Lalitkishore5 Technology & Internet 3 15-01-2011 05:15 PM
Website address of the Indian universities P-chuha Education Career and Job Discussions 1 16-11-2010 06:25 PM
ASP to display IP Address on Website Jesus2 Software Development 5 04-03-2010 11:55 AM


All times are GMT +5.5. The time now is 12:37 AM.