Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-04-28, 05:37 PM   #1
SexyCityEddie
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Apr 2005
Posts: 30
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...
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a>
SexyCityEddie is offline   Reply With Quote
Old 2005-04-28, 05:41 PM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
You mean something like this?
http://cleoslinks.com/info.php
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-04-28, 05:44 PM   #3
SexyCityEddie
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Apr 2005
Posts: 30
Quote:
Originally Posted by Cleo
You mean something like this?
http://cleoslinks.com/info.php

yeah.. exactly. lol better if u also add the OS and ISP. lol

are you gonna show me the codes? lol
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a>
SexyCityEddie is offline   Reply With Quote
Old 2005-04-28, 05:49 PM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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:
<html>

<head>
<title>Info Page</title>
</head>

<body bgcolor="#ffffff">
<div align="center">
Below you will find your requested information.<br>
<br>
<?php print "Your ip is: $REMOTE_ADDR <br><br>
Your browser is: $HTTP_USER_AGENT <br><br>
The URL that you came from is:  $HTTP_REFERER" ?><br>
<br>
<br>
Today's date is<br>
<?php echo date("Y-m-d"); ?><br>
<br>
<br>
</div>
</body>

</html>
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-04-28, 05:53 PM   #5
SexyCityEddie
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Apr 2005
Posts: 30
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???
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a>
SexyCityEddie is offline   Reply With Quote
Old 2005-04-28, 05:59 PM   #6
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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/
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-04-28, 05:59 PM   #7
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
Code:
<?php
$ua = $_SERVER['HTTP_USER_AGENT'];
preg_match('/\)\ .*\ (.*)\//',$ua,$browser);
preg_match('/\(.*; (.*);\ .*;\ .*\)\ /',$ua,$os);
?>
your IP is: <?php echo $_SERVER['REMOTE_ADDR']; ?><br>
your browser is: <?php echo $browser[1]; ?><br>
your OS is: <?php echo $os[1]; ?><br>
your ISP is: <?php echo gethostbyaddr($_SERVER['REMOTE_ADDR']); ?><br>
<p>
<script language="javascript" type="text/javascript">
document.write(navigator.appName + "<br>");
document.write(navigator.platform + "<br>");
</script>
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-04-28, 06:03 PM   #8
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Kewl but it says that my OS is "U"
http://cleoslinks.com/info.php

Quote:
your IP is: 66.176.162.232
your browser is: Safari
your OS is: U
your ISP is: 66.176.162.232
Netscape
MacPPC
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-04-28, 06:07 PM   #9
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-04-28, 06:08 PM   #10
SexyCityEddie
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Apr 2005
Posts: 30
Quote:
Originally Posted by Cleo
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/


Thanks cleo.
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a>
SexyCityEddie is offline   Reply With Quote
Old 2005-04-28, 06:10 PM   #11
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
That fixed the host

This is what I see as my browser string
Quote:
Your browser is: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-04-28, 06:11 PM   #12
SexyCityEddie
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Apr 2005
Posts: 30
Quote:
Originally Posted by cd34
Code:
<?php
$ua = $_SERVER['HTTP_USER_AGENT'];
preg_match('/\)\ .*\ (.*)\//',$ua,$browser);
preg_match('/\(.*; (.*);\ .*;\ .*\)\ /',$ua,$os);
?>
your IP is: <?php echo $_SERVER['REMOTE_ADDR']; ?><br>
your browser is: <?php echo $browser[1]; ?><br>
your OS is: <?php echo $os[1]; ?><br>
your ISP is: <?php echo gethostbyaddr($_SERVER['REMOTE_ADDR']); ?><br>
<p>
<script language="javascript" type="text/javascript">
document.write(navigator.appName + "<br>");
document.write(navigator.platform + "<br>");
</script>

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?


tt
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a>
SexyCityEddie is offline   Reply With Quote
Old 2005-04-28, 06:14 PM   #13
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-04-28, 06:16 PM   #14
SexyCityEddie
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Apr 2005
Posts: 30
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
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a>
SexyCityEddie is offline   Reply With Quote
Old 2005-04-28, 06:16 PM   #15
Pedronas
Lord help me, I'm just not that bright
 
Join Date: Apr 2005
Posts: 103
tnx Cleo
Pedronas is offline   Reply With Quote
Old 2005-04-28, 06:25 PM   #16
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
try:

Code:
<?php
$ua = $_SERVER['HTTP_USER_AGENT'];
preg_match('/\)\ .*\ (.*)\//',$ua,$browser);
preg_match('/\((.*)\)\ /',$ua,$os);
$os = explode(';',$os[1]);
?>
your IP is: <?php echo $_SERVER['REMOTE_ADDR']; ?><br>
your browser is: <?php echo $browser[1]; ?><br>
your OS is: <?php echo $os[2]; ?><br>
your ISP is: <?php echo gethostbyaddr($_SERVER['REMOTE_ADDR']); ?><br>
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-04-28, 06:34 PM   #17
SexyCityEddie
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Apr 2005
Posts: 30
wow! many thanks to CLEO and CD34... you guys are great.. thats a very big help..




tt
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a>
SexyCityEddie is offline   Reply With Quote
Old 2005-04-28, 06:36 PM   #18
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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:
your IP is: 66.176.162.232
your browser is: Safari
your OS is: PPC Mac OS X
your ISP is: c-66-176-162-232.hsd1.fl.comcast.net
Netscape
MacPPC
Shouldn't this say Safar?
"document.write(navigator.appName"

FireFox
Quote:
your IP is: 66.176.162.232
your browser is: Firefox
your OS is: PPC Mac OS X Mach-O
your ISP is: c-66-176-162-232.hsd1.fl.comcast.net
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-04-28, 06:51 PM   #19
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-04-28, 06:56 PM   #20
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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:
your IP is: 66.176.162.232
your browser is:
your OS is:
your ISP is: c-66-176-162-232.hsd1.fl.comcast.net
undefined
X11

Your browser is: Mozilla/5.0 (compatible; Konqueror/3)
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-04-28, 07:10 PM   #21
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
Quote:
Originally Posted by Cleo
You mean something like this?
http://cleoslinks.com/info.php
I see my old cookie checker in there
swedguy is offline   Reply With Quote
Old 2005-04-28, 07:16 PM   #22
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:49 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc