473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Tracking IP address of visitors to my website

Hi,
I posted a question to this forum a few days ago and got a veyr good
response - unfortunately I asked the wrong question (I asked about
referring domains, not IPs of visitors).

I've got a tracker on my webpages, from a third party, and it does
this very trick - I can follow bits of the script, like calculating
screen properties, but I just can't work out how the IP is stored or
calculated!

The script is:

<script><!--
an=navigator.appName;sr='http://x3.extreme-dm.com/';srw="na";srb="na";d=document;r=41;function
pr(n) {
d.write("<img src=\""+sr+"n\/?tag=drplee&p=http%3A%2F%2Fwww.btinternet.com%2F%7 Edr_paul_lee%2Forbs.htm&j=y&srw="+srw+"&srb="+srb+ "&l="+escape(d.referrer)+"&rs="+r+"\"
height=1 width=1>");}//-->
</script><script language="javascript1.2"><!--
s=screen;srw=s.width;an!="Netscape"?srb=s.colorDep th:srb=s.pixelDepth//-->
</script><script><!--
pr()//-->
</script><noscript><img
src=http://x3.extreme-dm.com/z/?tag=drplee&p=http%3A%2F%2Fwww.btinternet.com%2F%7 Edr_paul_lee%2Forbs.htm&j=n
height=1 width=1></noscript>

Can anyone help?

Thanks

Paul
Jul 20 '05 #1
4 11106
Paul Lee wrote:
I posted a question to this forum a few days ago and got a veyr good
response - unfortunately I asked the wrong question (I asked about
referring domains, not IPs of visitors).
There is no way to find out what the IP Address if the visitor is using
JavaScript. (You can use another technology and read from that using
JavaScript though - but its not very reliable, which of the 5 ip addresses
the machine I'm sitting at has would you like?)
I've got a tracker on my webpages, from a third party, and it does
this very trick - I can follow bits of the script, like calculating
screen properties, but I just can't work out how the IP is stored or
calculated!


<snip really ugly scripting>

It writes an <img> tag to the page. The visitor then requests the image and
the server the image is requested from logs it. The JavaScript is
irrelevent.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #2
David Dorward wrote:
There is no way to find out what the IP Address if the visitor is using
JavaScript. (You can use another technology and read from that using
JavaScript though - but its not very reliable, which of the 5 ip addresses
the machine I'm sitting at has would you like?)


Not to mention that one most certainly gets the IP address of the
proxy server the individual is using which most certainly more than
one individual is using and even if it is not the proxy server, IP
addresses tend to be dynamically assigned, i.e. changing for the
same host. IP addresses are simply the wrong way to track users.
PointedEars
Jul 20 '05 #3
*sigh*

Oh well, thanks for your help, even though it was not the answer that
I wanted.

I just thought that it would be nice to refer particular people to
certain webpages, e.g. in pseudo code:

if (ip-address==whatever)
{
change URL to update.htm
}
else
{
change URL to news.htm
}

Darn. Oh well, thanks again, my friends!

Best wishes

Paul
----------------------
http://www.paullee.com
Jul 20 '05 #4
Paul Lee wrote:
*sigh*
Hey, that's *my* line!!1
Oh well, thanks for your help, even though it was not the answer that
I wanted.
Well, here is a discussion newsgroup and not a (paid) support forum.
All you get is advice.
I just thought that it would be nice to refer particular people to
certain webpages, e.g. in pseudo code:
What part of `You cannot do this with client-side JavaScript!' did you
not understand? And I have not enough experience in server-side
JavaScript (I rather use PHP for server-side scripting since it is for
free and open source), you need to read on it for yourselves. Google
is your friend. [psf 6.1]

But the proxy issue is still valid, even with CGI you get a problem.
The only reliable way to workaround it, is a login form which can be
automated client-side (using the UAs password manager to fill user
name and password, e.g.) and quite easily implemented server-side.
The easiest way to do this is HTTP Authentication using .htaccess and
..htusers (and .htgroups) files, e.g. The most sophisticated but not
that easy way is account management using a server-side application
(written in a scripting language.)
----------------------
http://www.paullee.com


Signatures are to be separated by a line of dashDashSpace (`-- '),
otherwise they may be "advertising the same service", IOW spam and
thus may be (automatically) canceled. Yours, for example.
PointedEars
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: truckmen | last post by:
Hello All, I still can't figure it all out. I am trying to create a web page (using php) where: 1) A visitor add his or her name to an address book that can also be viewed online by other...
2
by: Burton Figg | last post by:
I have set up a very simple site tracker. Each page runs the following code, to insert basic details into a MySQL database. ref = request.servervariables("HTTP_REFERER") str =...
11
by: hawkon | last post by:
Hi all, I have an important question to ask about how to trap events when the user close the browser window. I'm a ASP programmer and I have s MSSQL database with a user table where I'm able to...
8
by: gil | last post by:
I'm trying to track how many users are visiting a site and how may are logged in, using application sessions like so: Sub Session_OnStart Session.Timeout = 20 Session("Start") = Now...
1
by: DDK | last post by:
Does anyone know if there are any books that talk about building a website tracking program for asp.net and C#? Or even any good resources on the web that talk about this. Thanks for any info,...
0
by: ip2location.inc | last post by:
IP2Location has announced the availability of IP2Location .NET Component, that enables application developers to geolocation the Internet visitors by IP Address from their .NET applications. ...
3
by: Jeff | last post by:
Hey asp.net 2.0 I'm using Request.UserHostAddress and Request.UserHostName to get info about the site visitors. But the only info I get is IP addresses. Isn't there a way I can get more info...
2
by: C# programmer | last post by:
Hi All, I'm working on a project which requires tracking of recent document downloads. There is a feature in which user can download the docs without logining into the website for some of the...
6
by: tenxian | last post by:
It is said as for code, developing a website that can stand 10,000 concurrent visitors is much different from developing a website that can stand 1,000 concurrent visitors, is it true?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.