Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
XenoMorpH
Hangin' Around



Joined: Jan 23, 2004
Posts: 37
Location: Netherlands

PostPosted: Sat Feb 17, 2007 8:03 am Reply with quote

Hi, I'm trying to create an online version checker which will store all pagehits by domainname. Sad thing is that when a website/server hits the page on my site to check if there is an update, only the [REMOTE_ADDR] IP is obtainable, as it is no referer. Is there a way to get the domain name? Or either with .htaccess?
 
View user's profile Send private message Visit poster's website
djmaze
Subject Matter Expert



Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv

PostPosted: Sat Feb 17, 2007 9:17 am Reply with quote

tdi-hq.com has address 82.94.236.145
Found 67 websites with the IP 82.94.236.145

1) afghannetworks.com
2) archief.trsr.nl
3) ataraxia.nl
4) bijbelspel.nl
5) buiteronline.nl
6) burfo.nl
7) carprofile.nl
Cool cultural-evolution.com
9) d-teck.nl
10) de-huismeester.nl
11) delaarstukken.stonespoint.org
12) djwax.be
13) downthere.nl
14) dutchbest.net
15) dynamo-eindhoven.nl
16) dynamo666.com
17) dynamo666.nl
1Cool ferrari-world.be
19) flashveendam.nl
20) gollandia.nl
21) hf-online.nl
22) houthandelposthumus.nl
23) ingridenjan.nl
24) kevinrommen.nl
25) koopjeswinkelen.nl
26) leiden12.nl
27) leiden12online.nl
2Cool maartenvr.nl
29) mafkees.com
30) mijnwereld.com
31) molsonline.com
32) naaneldering.nl
33) nieuwbierland.nl
34) obsdevuurtoren.nl
35) ondernemingen.woningetalage.nl
36) onroerendgoed.woningetalage.nl
37) pakvla.nl
3Cool peterverduin.nl
39) pornodj.com
40) quote.naaneldering.nl
41) raaijmakers1.nl
42) rjj-productions.com
43) russiaonline.nl
44) salesdesk.nl
45) scoutingstjan.nl
46) sez-you.nl
47) sezyou.nl
4Cool sjoerdcoumans.nl
49) sonnylips.nl
50) sportfotografen.nl
51) sss2006.xarayahosting.nl
52) stonespoint.org
53) superdopey.nl
54) tdi-hq.com
55) thevwbarn.com
56) tholenweb.nl
57) timmeronline.nl
5Cool ton-gmtdesign.nl
59) trsr.nl
60) verbidiviniminister.nl
61) vindjemeleukofzo.nl
62) visstek.nl
63) wickedclan.nl
64) wierbos.com
65) windvangers.nl
66) xarayahosting.nl
67) zoek.trsr.nl


Hard huh to find domain with an IP Laughing
 
View user's profile Send private message Visit poster's website
XenoMorpH







PostPosted: Sat Feb 17, 2007 9:25 am Reply with quote

Yeah, that's what I figured already...I just thought there was another way to retreive the domainname other than a single IP of the server....
I'll try sumfn else Smile...just got an idea popup into my head...
 
nanocaiordo
New Member
New Member



Joined: Feb 17, 2007
Posts: 2
Location: Italy

PostPosted: Sat Feb 17, 2007 6:32 pm Reply with quote

If you want to track the domain name there is only one, simple way, to do that.

The client site will connect to your online version checker as follow:

momsite.com/online_version_checker.php?version=2.2&domain=client.com

On the client side its easy to get the correct domain name but if not available then the ip will be sent. Sure you might soon will start logging 127.0.0.1 or other lan IPs but thats a small fees to pay for user that are "testing" your product in their local PCs
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Feb 18, 2007 9:45 pm Reply with quote

Well you can use the PHP gethostbyaddr() function to get the host name. That would help if you want to track by ISP. But there generally isn't anything to go from IP -> Domain

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
XenoMorpH







PostPosted: Mon Feb 19, 2007 2:41 am Reply with quote

nanocaiordo wrote:
If you want to track the domain name there is only one, simple way, to do that.

The client site will connect to your online version checker as follow:

momsite.com/online_version_checker.php?version=2.2&domain=client.com

On the client side its easy to get the correct domain name but if not available then the ip will be sent. Sure you might soon will start logging 127.0.0.1 or other lan IPs but thats a small fees to pay for user that are "testing" your product in their local PCs


Yeah, that's what I did Smile
Got it working. tnx for all input tho Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©