By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,828 Members | 1,409 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,828 IT Pros & Developers. It's quick & easy.

detect provider and resolution for webstats?

P: n/a
Hi,

I'm building my own webstats, and I was wondering if I could detect
following things:
the screeen resolution (although I believe this is only to be found out
through javascript, this sucks, since my stats have to be collected before
any output is made)
the provider (through the IP?)
An example are this stats: http://www.nedstatbasic.net/s?id=710309
The beginning of the 3th column with last 10 visitors is the provider.

TIA
greetz
Tim
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
wEEdpEckEr <toch_lekker_nie@geen_email.aub> wrote in message news:<Xn*********************************@195.130. 132.68>...
Hi,

I'm building my own webstats, and I was wondering if I could detect
following things:
the screeen resolution (although I believe this is only to be found out
through javascript, this sucks, since my stats have to be collected before
any output is made)
IMHO, no way except JS for this.
the provider (through the IP?)


You should need the DB for that. eg. <http://www.ip2location.com/>

--
http://www.sendmetoindia.com - Send Me to India!
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

P: n/a
ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) schreef op vr, 09 apr
2004 04:45:39 GMT in news:ab**************************@posting.google.c om:
the provider (through the IP?)


You should need the DB for that. eg. <http://www.ip2location.com/>


Hmmm, that seems to be one where you have to pay for... I already use a
country db (http://ip-to-country.webhosting.info/node/view/6 ) which is
free. You wouldn't happen to have a free one? ;-) Thanx for the information
anyways.

greetz
<T!M> aka wEEdpEckEr
Jul 17 '05 #3

P: n/a
wEEdpEckEr <toch_lekker_nie@geen_email.aub> wrote in message news:<Xn*********************************@195.130. 132.69>...
ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) schreef op vr, 09 apr
2004 04:45:39 GMT in news:ab**************************@posting.google.c om:
the provider (through the IP?)


You should need the DB for that. eg. <http://www.ip2location.com/>


Hmmm, that seems to be one where you have to pay for... I already use a
country db (http://ip-to-country.webhosting.info/node/view/6 ) which is
free. You wouldn't happen to have a free one? ;-) Thanx for the information
anyways.


If I understand right, they all grab the data from whois DB itself.
So, here is my simple guidelines. Please post your feedback/result
here; possibly I'll check after the Tamil New Year holidays.

1. Get the IP.
2. Refer <http://www.iana.org/assignments/ipv4-address-space> and
__see__ *which* whois server should be used for the whois lookup.
3. Now, do the whois lookup. eg. whois -h whois.apnic.net 61.x.x.x
4. Parse the results. AFAIK, it will have the ISP info.
5. Repeat this steps with many IPs and findout the best method to
parse the exact ISP string.
6. Now, write your IP2ISP script in PHP. You may use shell_exec()
<http://in2.php.net/shell_exec> or other system functions to invoke
the commandline whois utility.

HTH. Happy Tamil New Year (April 14th:-)).

--
http://www.sendmetoindia.com - Send Me to India!
Email: rrjanbiah-at-Y!com
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.