The Google home page has numerous regional domain equivalents, such as www.google.co.jp, www.google.fr, or www.google.ca to mention just a few, and in most cases when a user browses to www.google.com they'll be redirected automatically to the appropriate regional domain for their country location, based on a lookup of their source IP.
To prevent this from happening, the ProxySG administrator can setup a redirect to Google's No Country Redirect URL in the VPM or local policy, which will force the loading of the main www.google.com homepage regardless of the source IP location detected by the Google server.
To setup the policy in the VPM:
To setup the policy in the local policy file:
define condition google_com
url.regex="^http://www.google.com$"
url.regex="^http://www.google.com/"
url.path="/ncr"
end
define condition google_regional
url.regex="http://www.google.com.[a-z]{2.EN_US}[./]"
end
define condition google_ncr
condition=google_regional condition=!google_com
end
define action ReturnRedirect1
redirect(302, "(.*)", "https://www.google.com/ncr" );
end
<Proxy>
condition=google_ncr action.ReturnRedirect1(yes)