homepage Welcome to WebmasterWorld Guest from 54.81.170.186
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
How to customize index to be opened at preselected IP locations
Your visitors to open a customized opening page according to their IP
cyberlogos




msg:4009602
 5:46 pm on Oct 19, 2009 (gmt 0)

How to set up customized index to be opened at predetermined IP ranges ? For example if you want visitors from certain countries or cities open a different index opening page as they visit your site, how this can be done to detect the IP and launch opening index page A, B or C ?

First, to detect the IP the visitor is from, and according to it, to launch a parent page to be seen by that visitor, as a welcome mesage for instance.
(If it launches as blank page and they have a pop-up blocker it wont be useful)

Since Im not such an expert I seek help to copy/paste/edit the code lines you may share here. Thanks!

 

IanTurner




msg:4009611
 6:08 pm on Oct 19, 2009 (gmt 0)

Detect the IP server side and then use PHP/ASP/.Net to deliver the appropriate content.

The IP will be available from the HTTP Request.

cyberlogos




msg:4009740
 10:58 pm on Oct 19, 2009 (gmt 0)

My expertise is not enough since Im not a programmer, so I wonder if what you indicate is into lay terms something as:

First: I need to install some IP detector code on my index (some you may suggest?)
Second: Add some code lines with conditional contents:
-IF a visitor comes from a specific number of IP, lets say 190.155.8.214, >proceed to forward to index A;
-IF visitor comes from IP starting with 188 ( Switzerland) then proceed to forward to index B;
-IF proceeds from IP ranging from 189.#*$!.x.#*$! ... to 200.#*$!.#*$!.#*$! then proceed to forward to show index C.
- All the rest just show the default index opening page.

I do appreciate your concern and courtesy in answering. I would like to be such an expert as to pick up your advise and program advanced PHP and all you mentioned. Since Im not so proficient, I wonder if it would be possible to get the lines of code to do this and copy/paste/edit them into my index. Or point me some tutorial or link to follow through.

toplisek




msg:4009860
 5:50 am on Oct 20, 2009 (gmt 0)

I would suggest the following correct procedure:
1. Install GEO db form link: [maxmind.com...]
2. $_SERVER['REMOTE_ADDR']; to get the IP Address of Visitors.
3. PHP code to read database:
[maxmind.com...]
4. Redirection of URL:
4.1. to redirect a user from the page they entered to a different web page. One reason you may want to do this is that the page they are trying to access no longer exists. 4.2. seamlessly can be transfered to the new page without having to click a link to continue:
<?php
header( 'Location: [mywebsite.com...] ) ;
?>
5. You should be aware that languages should be within folders like en-GB. Google notices these folders...

Bingo, you are on the way to automatic detect language.

cyberlogos




msg:4020756
 10:56 pm on Nov 6, 2009 (gmt 0)

Toplisek, thank you for your advise.
In the meanwhile I discovered web-stat.com who also offer this service of geolocation very easy as well as others such as monitoring of LIVE visitors with lots of stats.
Your post is most appreciated.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved