![]() |
Help.....
hi guys.... do u know any script or site that provides free script for detecting the site visitors' IP, OS, Browser, ISP, etc???
i thought that its cool if you have that script in your site coz its kinda impressive. any script will do... better if by JS or PHP its something like this: your IP is: 213.564.34.66 your browser is: Firefox your OS is: Windows XP your ISP is: pldt.net or take a look at this. www.danasoft.com thanks... :D |
You mean something like this?
http://cleoslinks.com/info.php |
Quote:
yeah.. exactly. lol better if u also add the OS and ISP. lol are you gonna show me the codes? lol |
That is just a bit of php code less the firewall test at the bottom of the page.
Here is the page source code. Be sure to use the .php extension on the page. Code:
|
wow.. thanks cleo. u the man. lol
now the only script left that im going to research is OS and ISP detector.. cool.. thanks again dude.... but AFAIC, i cant use that script just like that right? i think i must have a declaration or string or something??? |
You are welcome but I'm not a dude.
The OS does show up in that. You can do a reverse lookup on the IP here http://www.whois.sc/ |
Code:
$ua = $_SERVER['HTTP_USER_AGENT']; |
Kewl but it says that my OS is "U"
http://cleoslinks.com/info.php Quote:
|
yeah, I was afraid of that.... the UA string is not really that standard in its composition
I guess you could look for telltale strings in it with a table rather than trying to pluck out the piece that some browsers have. It worked on two of the browsers I tested. also, change gethostbyname to gethostbyaddr -- I wrote that off the top of my head and made a thinko. :) |
Quote:
Thanks cleo. |thumb |
That fixed the host :)
This is what I see as my browser string Quote:
|
Quote:
this is great also. i tried this but the problem is the IP OS ISP and Browser is blank, i put it inside the "body" and saved as php.. do i have to edit some? |thumb tt |
The difference between cd34 and me is he actually understands the code and I just have little snippets of code that I've saved over the years.
I do have dusty book or two on php |
oh wait guys, DO I HAVE TO PUT THE PHP FILE ONLINE??? lol coz i tried both of your scripts offline. the file is just in my local folder. hahaha
|
tnx Cleo
|
try:
Code:
$ua = $_SERVER['HTTP_USER_AGENT']; |
wow! many thanks to CLEO and CD34... you guys are great.. thats a very big help.. |thumb |headbang| |bow|
tt |
That works for Safari but returns nothing for IE
This is IE's string "Your browser is: Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)" Quote:
"document.write(navigator.appName" FireFox Quote:
|
yeah, I figured that -- IE doesn't have the arguments in the same order. Its a lot harder than it seems to get it to be accurate across all of the different variations since there is no standard layout for the UserAgent.
|
Seems a lot easier just to read the info for yourself then trying to grab bits of it and display them.
The ISP info is pretty kewl. Look at the OS when I told Safari to be Konqueror :) Quote:
|
Quote:
|
I couldn't remember where I got that.:)
It works great when I'm trying to figure out why one of Angel's members is having problems seeing her feeds. |
All times are GMT -4. The time now is 05:07 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc