Hi,
I have a problem where I am trying to route visitors through different page flows on our website dependent upon their IP address.
I have spent three days looking at how to achieve this, but I can’t get my head around it.
For instance:
User A has an IP address of XXXXXX, I want their route to flow like this:
Page 1 (click on hyperlink to page 2) ===> Page 2.ver1 (click on hyperlink to page 3) ===> Page 3
User B has an IP address of YYYYYY, I want their route to flow like this:
Page 1 (click on hyperlink to page 2) ===> Page 2.ver2 (click on hyperlink to page 3) ===> Page 3
I have searched for plugins that may do this kind of thing but have drawn a blank.
As I see it, I need to be able to:
- Retrieve the visitor’s IP address
- Compare that address against a list of IP ranges that then returns a value (i.e. A, B, C etc.)
- Then route to one of a number of different pages depending on the return value
I don’t know if anyone can point me in the right direction as to how I might be able to do this type of thing?
Our Setup
MODx version 1.0.3
Version codename rev 6653
phpInfo() View
Access permissions Enabled
Server Time 12:46:32
Local Time 12:46:32
Server offset 0 h
Database name domain_com_modx
Database server 127.0.0.1
Database Version 5.0.92-community-log
Database Charset latin1
Database Collation Charset latin1_swedish_ci
Table prefix modx_
MODX_BASE_PATH /home/public_html/
MODX_BASE_URL /
MODX_MANAGER_URL http://www.domain.com/manager/
MODX_MANAGER_PATH /home/public_html/manager/
MODX_SITE_URL http://www.domain.com/