How to Test a Site With a Türkiye IP: A QA Guide

Published:

10 minute read

Acar Diveroli
Written by: Acar Diveroli
Three cards lined up in front of a test window with a checklist: time zone, language and, in front, a blue exit IP

Testing a site with a Türkiye IP means opening the site through a proxy that exits in Türkiye and checking the version a visitor in Türkiye sees. A site reads the country from the IP address, the language from the Accept-Language header and the time zone from the browser. If these three signals disagree, the screen shows a mix that no real user ever sees. This post covers what to check, header tests with curl, screenshots with Playwright and a test checklist.

The three signals a site reads

A site decides where a visitor comes from using three separate sources. A proxy changes only one of them. The other two come from your test machine.

SignalWhere it is readWhat it changes
IP addressThe connection's exit addressCountry, currency, cookie banner, CDN edge
Accept-LanguageThe browser's language settingLanguage redirect, copy
Time zone and navigator.languageBrowser and operating systemDate, time, number format

When a QA machine in Berlin opens the site with a Türkiye IP, the signals clash. The IP says Türkiye, the browser says de-DE and Europe/Berlin. The site may print a lira price in German number format. Most of the time this mix comes from the test setup, not the site.

This post is written for teams. We covered how a user abroad can reach Turkish sites in How to Get a Türkiye IP Address From Abroad.

A proxy profile in the browser

For manual testing, open a separate browser profile. The cookies and language settings in your everyday profile spoil the test.

In Firefox, create a new profile from the about:profiles page. Enter pr.proxynet.io and 8000 in the manual proxy settings. The setup steps are in our Firefox proxy settings guide. In the same profile, move Turkish to the top of the page language preferences.

In Chrome, a separate profile is opened from the command line:

bash
chrome --user-data-dir="C:\qa\tr-profile" \
  --proxy-server="http://pr.proxynet.io:8000" \
  --lang=tr

On Windows and Linux, --lang=tr sets the browser language to Turkish. On macOS, change the language in Settings. --proxy-server does not accept a password inside the address, so Chrome asks for the username and password in a dialog. The limit of manual testing is the time zone. The browser uses the computer's time zone, and that has to change too.

For single-page tests, an IP that changes on every request is enough. If you walk through several pages in one flow, use a sticky session with a duration between 1 and 60 minutes. For regression tests that run for days, ISP Proxy keeps the same address and fits better.

Headers and CDN with curl

curl shows the redirect and the headers without rendering the page. The first command prints where the home page redirects:

bash
curl -sS -o /dev/null \
  -x http://user:pass@pr.proxynet.io:8000 \
  -H "Accept-Language: tr-TR,tr;q=0.9" \
  -w "%{http_code} %{redirect_url}\n" \
  https://www.example.com/

On our test site this command returned 302 with a redirect to /tr/. The same request without the Accept-Language header went to /en/. If the redirect depends on language, the IP alone is not enough.

The second command filters the headers that matter:

bash
curl -sS -o /dev/null -D - \
  -x http://user:pass@pr.proxynet.io:8000 \
  -H "Accept-Language: tr-TR,tr;q=0.9" \
  https://www.example.com/ \
  | grep -iE "^(location|vary|set-cookie|content-language|cf-ray|x-amz-cf-pop|x-cache|age):"

Location shows the target, Set-Cookie the initial state of the cookie banner, and Vary: Accept-Language that the cache is split by language. With wrong credentials, curl returns 407. On Windows, type curl.exe, put the command on one line and use findstr /i instead of grep.

A CDN serves the request from a data center close to the proxy's exit point. So the edge server is chosen by the exit IP, not by your office. The cf-ray header in a Cloudflare response ends with a three-letter data center code. In CloudFront responses the same information appears in the x-amz-cf-pop header.

The trap is DNS. With an HTTP proxy, the proxy resolves the domain name. In curl, socks5:// resolves the name on your machine. A CDN that routes by DNS then hands out an address close to your machine, and the edge server is wrong. If you use SOCKS5, write socks5h://.

The second trap is the cache. If the edge server stores the Turkish redirect for / without a Vary header, the next visitor goes to the same language. If Vary is missing and age is above zero, report it to the team.

Screenshots with Playwright

Playwright passes the proxy to the browser, and the language and time zone to the browser context. Given together, the signals stay consistent. The basic proxy setup is in our Playwright and proxy guide.

python
from playwright.sync_api import sync_playwright

PROXY = {
    "server": "http://pr.proxynet.io:8000",
    "username": "user",
    "password": "pass",
}

with sync_playwright() as p:
    browser = p.chromium.launch(proxy=PROXY)
    context = browser.new_context(
        locale="tr-TR",
        timezone_id="Europe/Istanbul",
        viewport={"width": 1366, "height": 900},
    )
    page = context.new_page()
    response = page.goto("https://www.example.com/")
    print(page.url, response.status)
    print(page.evaluate("""() => ({
        language: navigator.language,
        timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
    })"""))
    page.screenshot(path="tr-home.png", full_page=True)
    context.close()
    browser.close()

In our test, locale="tr-TR" set both the navigator.language value and the Accept-Language: tr-TR header. The page went to /tr/. In a context without locale, Playwright's Chromium sent no Accept-Language header and the site opened /en/. The time zone came from the machine's settings. On a machine abroad, that means the wrong time.

Open a new new_context for each scenario. A new context starts with empty cookies, so the cookie banner appears as it does on a first visit.

Testing Turkish characters

In Turkish, the uppercase of i is İ, and the uppercase of ı is I. Uppercasing without a language does not know this rule. In our test, the same text gave these results four ways:

MethodResult for istanbul şubesiStatus
JS toUpperCase()ISTANBUL ŞUBESI✗
JS toLocaleUpperCase('tr-TR')İSTANBUL ŞUBESİ✓
CSS text-transform: uppercase, lang="tr"İSTANBUL ŞUBESİ✓
CSS text-transform: uppercase, lang="en"ISTANBUL ŞUBESI✗

The error in the last row is easy to miss. When Turkish text is uppercased inside a component that carries lang="en", you get a broken word like ŞUBESI. Check buttons and menu titles.

Sorting has the same problem. JavaScript's default sort() pushes ç, ö and ı to the end of the list. With Intl.Collator('tr'), the order cam, çam, ılık, irmik comes out right. Check alphabetical lists such as province lists and brand filters with this in mind.

The test checklist

The differences specific to Türkiye fall into eight checks. Repeat the list on every release and log each row as a separate test.

CheckToolExpected
Home page redirectcurl -w "%{redirect_url}"/tr/ or the Türkiye version
Cache splitcurl -D -Language or country in Vary
Price formatPlaywright screenshot₺1.234,50
Cookie bannerNew context, first visitTurkish copy, working buttons
Checkout pageThe site's test modeTRY, installments, province and district fields
CDN edgecf-ray / x-amz-cf-popData center close to the exit IP
UppercaseScreenshotİ and I in the right places
Alphabetical listPage inspectionç, ı, ö in their own place

The Turkish price format is ₺1.234,50: a dot for thousands, a comma for decimals. In our test, the same amount in English format came out as TRY 1,234.50. Do not make real payments on the checkout page; use the site's test mode. Open the cookie banner with a clean session every time, or you miss the first visit, the only time the banner appears.

Debugging

Most problems come from conflicting signals or from proxy credentials.

  • Page in English, price in lira. The IP is Türkiye, the language is something else. Set tr-TR in the browser.
  • Page in Turkish, price in dollars. The currency follows the IP and the exit is not Türkiye. Check the proxy's country setting.
  • curl returned 407. The username or password is wrong. If the password contains @, write %40.
  • The proxy log shows a 407 on every new connection. Chromium sends the first request without credentials and repeats it with credentials after the 407. In our test this appeared on the first request of every new context. It is normal.
  • The edge server is abroad. You are using local DNS with socks5://. Switch to socks5h:// or an HTTP proxy.

How we tested

We ran the code on December 3, 2026 on Windows 11: curl 8.23.0, Python 3.13, Playwright 1.58.0 (Chromium 145), Node 24. The setup had two local parts. The first was an HTTP proxy that required Basic authentication and logged every request. The second was a test site that redirected to /tr/ or /en/ based on the Accept-Language header. The site set a cookie and printed the language, time zone and price format on the page. A real Türkiye IP and IP-based country detection were not part of this test. The currency format and sorting results are Node 24's Intl output.

The bottom line

Set the proxy, language and time zone together, start every scenario with a clean session and record the headers with curl. For team needs, see Residential Proxy and the localization testing page. Above all, set the language: a test that only changes the IP does not show the screen of a user in Türkiye.

Sources

Frequently asked questions

Is a VPN enough to see my site from Türkiye?

Partly. A VPN also changes the IP address, but it is hard to plug into automated test tools and to pick a different exit for each scenario. A proxy is passed to tools like curl and Playwright in one line, and each test context can use its own address. Whichever you choose, you still have to set the browser language and time zone for Türkiye separately.

Does setting locale in Playwright change the Accept-Language header?

Yes. In our test, a context opened with locale="tr-TR" sent the Accept-Language: tr-TR header on every request, and navigator.language became tr-TR. Without locale, Chromium did not send this header. The time zone is independent of this setting; pass it separately with timezone_id="Europe/Istanbul". The proxy changes neither of them; it only sets the exit IP.

What should a lira price look like?

In Turkish format it looks like ₺1.234,50. The thousands separator is a dot, the decimal separator is a comma, and the symbol comes first. In our test, the same amount came out as TRY 1,234.50 in English format and 1.234,50 TRY in German format. If you see one of these two, the page formats prices with a non-Turkish language setting. First check that the browser opened with tr-TR.

How do I find out which edge server the CDN used?

From the response headers. On Cloudflare, the three-letter code at the end of the cf-ray value shows the data center. In CloudFront responses, the x-amz-cf-pop header carries the same information. Fetch the headers through the proxy with curl -D -. If you use SOCKS5, write socks5h://; otherwise DNS is resolved on your machine and the wrong edge server may be picked.

Should I test the checkout page with a real card?

No. Run the payment steps with the payment provider's test mode and test cards. In a Türkiye test, check that the currency is TRY, installment options appear, the address form has province and district fields, and phone numbers use the +90 format. A test with a real card creates refund work and pollutes the reports.

Does the IP need to stay fixed during a test?

It depends on the flow. For a single-page screenshot, an IP that changes on every request is enough. For multi-step flows like cart and checkout, open a sticky session with a duration between 1 and 60 minutes. For regression tests repeated from the same address for days, a static ISP address makes results easier to compare. That way the difference between two releases comes from the code, not from an IP change.

Ask ChatGPTAsk Claude