A system and method of automatically routing a user to an optimal data center of a host. A method includes transmitting a web page having measurement code and modification code from one of a plurality of data centers to a computing device. The measurement code determines an optimal data center of the plurality of data centers for the computing device, and the modification code alters at least one link in the web page to point to the optimal data center.