Azure ProxySG localization issue: Is there a way to display Location-Based web pages without making any intervention at the network layer?
search cancel

Azure ProxySG localization issue: Is there a way to display Location-Based web pages without making any intervention at the network layer?


Article ID: 275657


Updated On:


ProxySG Software - SGOS


The customer installed and configured new Edge SWG (ProxySG). The customer also installed an Azure environment and the customer's location is in Turkey, but Azure servers are hosted in the Netherlands. Is there a way to display Turkey web pages without making any intervention at the network layer? The customer's redirected Google Netherlands page get's redirected to Google Turkey. However, it redirects after a warning appears on the screen. The customer couldn't get it to work for YouTube. Can this be achieved by editing the headers, in the Proxy?


Release :


Redirecting web traffic from one location to another without network layer intervention can be challenging, and it often depends on the website's behavior and configuration. Here are a few considerations and potential solutions:

Geolocation-Based Content Delivery: To ensure users in Turkey see Turkey-specific content, it's important for websites to identify the user's location and serve the appropriate content. However, this typically relies on the website's configuration. Websites often use IP geolocation databases to determine a user's location based on their IP address. If the Azure servers are hosted in the Netherlands, some websites may automatically serve content for the Netherlands. In such cases, it's challenging to change this behavior without cooperation from the website itself.

HTTP Headers: Modifying HTTP headers, such as the "Accept-Language" header or "User-Agent" header, can sometimes influence the content displayed by a website. However, this approach depends on how the website handles these headers. For example, setting the "Accept-Language" header to "tr-TR" (Turkish) may indicate a preference for Turkish content, but it's up to the website to honor that preference. Similarly, changing the "User-Agent" to mimic a browser from Turkey might influence website behavior.

Proxy or CDN Services: Some companies use proxy servers or content delivery networks (CDNs) that are geographically distributed to optimize content delivery. You can explore using a proxy or CDN service that has a presence in Turkey. Requests from your location can be routed through a Turkish server, which may help in receiving content optimized for Turkey. Akamai, Cloudflare, and similar providers offer such services.

Please, refer to the Tech. Doc. with the URL below, for the recognized recognized http headers, with ProxySG. 

For possible implementation guidance, please refer to the Tech. Article with the URL below.

DNS Services: Some DNS services offer geolocation-based routing. By using such a service, you can route DNS requests differently for users in Turkey, effectively directing them to the nearest server or a server in Turkey.

Content Delivery Through Azure: If you are using Azure, you might also explore Azure Content Delivery Network (CDN) services. This can help optimize content delivery to users in various locations, including Turkey.

Website Configuration: If you have control over the websites you want to optimize for Turkey, you can configure them to serve Turkish content by default or allow users to select their region.

If you want to ensure that Google's services are appropriately localized for users in Turkey, it is advisable to contact Google. Google is a major internet service provider, and they may have mechanisms in place to optimize content delivery and services for specific regions, including Turkey. However, keep in mind that the extent to which they can accommodate your request may vary depending on their policies and capabilities.


Redirecting websites without user consent or awareness may not be in compliance with legal and ethical standards. Users often receive warnings or prompts to confirm location changes due to privacy and security concerns. This is an expected behavior.

It's important to note that modifying headers or traffic at the network layer to redirect or modify website content can be complex and might not work for all websites. Depending on your specific use case and the websites you want to optimize, a combination of the approaches mentioned above may help achieve your desired results while respecting user preferences and website policies.