|
|
|
|
|
|
|
![]() |
#1 |
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> |
![]() |
![]() |
![]() |
#2 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
You mean something like this?
http://cleoslinks.com/info.php |
![]() |
![]() |
![]() |
#3 | |
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Apr 2005
Posts: 30
|
Quote:
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> |
|
![]() |
![]() |
![]() |
#4 | |
Vagabond
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 |
Subversive filth of the hedonistic decadent West
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> |
![]() |
![]() |
![]() |
#6 |
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> |
![]() |
![]() |
![]() |
#7 |
Subversive filth of the hedonistic decadent West
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/ |
![]() |
![]() |
![]() |
#8 | |
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Apr 2005
Posts: 30
|
Quote:
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> |
|
![]() |
![]() |
![]() |
#9 |
a.k.a. Sparky
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 |
![]() |
![]() |
![]() |
#10 | |
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Apr 2005
Posts: 30
|
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? ![]() tt
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a> |
|
![]() |
![]() |
![]() |
#11 | |
Subversive filth of the hedonistic decadent West
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:
|
|
![]() |
![]() |
![]() |
#12 |
a.k.a. Sparky
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 |
![]() |
![]() |
![]() |
#13 | |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
That fixed the host
![]() This is what I see as my browser string Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Subversive filth of the hedonistic decadent West
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 |
![]() |
![]() |
![]() |
#15 |
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> |
![]() |
![]() |
![]() |
#16 |
Lord help me, I'm just not that bright
Join Date: Apr 2005
Posts: 103
|
tnx Cleo
__________________
******.com - 21century hosting. 99.9% uptime ICQ 477771 |
![]() |
![]() |
![]() |
#17 |
a.k.a. Sparky
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 |
![]() |
![]() |
![]() |
#18 |
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> |
![]() |
![]() |
![]() |
#19 | ||
Subversive filth of the hedonistic decadent West
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:
"document.write(navigator.appName" FireFox Quote:
|
||
![]() |
![]() |
![]() |
#20 |
a.k.a. Sparky
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 |
![]() |
![]() |
![]() |
#21 | |
Subversive filth of the hedonistic decadent West
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:
|
|
![]() |
![]() |
![]() |
#22 |
Subversive filth of the hedonistic decadent West
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. |
![]() |
![]() |
![]() |
|
|