Parked Domain

liunx

Guest
I'm hosted by TCH on a shared server, and currently I have my domain name simobile.com parked on top of foothillsforum.com<br /><br />Is there any way I can detect through code in my index.php file that someone had got there by typing in simobile.com rather than foothillsforum.com, or can I never detect?<br /><br />Currently in my PHP code, all I ever get returned to me in variables such as $_SERVER['SERVER_NAME'] is foothillsforum.com - I want to know if somebody had used simobile.com to get to the site.<br /><br />In the address bar pages do show up as either <!-- w --><a class="postlink" href="http://www.simobile.com/blahblah">www.simobile.com/blahblah</a><!-- w --> or <!-- w --><a class="postlink" href="http://www.foothillsforum.com/blahblah">www.foothillsforum.com/blahblah</a><!-- w --> depending on what was used.<br /><br />Thanks for any any advice!<!--content-->
You should be able to check AWStats for either domain to see how many are accessing the sites using the domains.<!--content-->
Maybe you could use javascript to retrieve it?<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><script language="javascript">var thisdomain;<br />thisdomain = window.location.host;</script><!--c2--></div><!--ec2--><!--content-->
Maybe<br />getenv("HTTP_REFERER");<br />would work?<!--content-->
Try this to see what you get<br /><br /><?php <br /><br />echo '<pre>';<br />print_r($_SERVER);<br />echo '</pre>';<br /><br />?><br /><br />See what results you get.<!--content-->
<!--quoteo(post=187902:date=Aug 13 2006, 02:28 PM:name=carbonize)--><div class='quotetop'>QUOTE(carbonize @ Aug 13 2006, 02:28 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=187902"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Try this to see what you get<br /><br /><?php <br /><br />echo '<pre>';<br />print_r($_SERVER);<br />echo '</pre>';<br /><br />?><br /><br />See what results you get.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br /><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><!--fonto:Verdana--><span style="font-family:Verdana"><!--/fonto-->Aha! Everything returned was the same, except for [HTTP_HOST] which gave me either simobile.com or foothillsforum.com, depending on what I had entered in the address bar.<br /><br />Thanks to everyone for all your replies.<br /><br />Cheers,<br /><br />Miner2049er.<!--fontc--></span><!--/fontc--><!--sizec--></span><!--/sizec--><!--content-->
 
Back
Top