🍪
Security

Do you need a cookie banner in Uzbekistan? Law, GDPR and a fair setup

26.11.2026
← All articles

Almost every foreign website greets you with a "We use cookies" box at the bottom of the screen. Site owners in Uzbekistan often ask whether they need one too and whether there is a penalty for not having it. The honest answer is "it depends": on which cookies your site sets, who your audience is and what data you collect. Below we work through the question step by step and show how to build a simple, fair banner. This is general information, not legal advice.

What cookies are and why sites use them

A cookie is a small piece of text the browser stores at a site's request and sends back with every following request, which is how the site "remembers" you. Shopping carts, logged-in sessions and language choice usually rely on cookies, and a site cannot work properly without them. A second group is used for analytics and advertising: Google Analytics, Yandex Metrica or social media pixels track which pages a visitor viewed and where they came from, and some build advertising profiles across sites. The banner debate is about this second group.

TypeExampleConsent needed
Essentialsession, cart, CSRF token, languageusually no, but describe in the policy
Analyticsvisit statistics, session recordingyes under European rules
Marketingad pixels, retargetingyes under European rules

What Uzbek law says

Uzbekistan has no cookie-specific rules like Europe's. However, the Law "On Personal Data" requires personal data to be processed with the owner's consent. If cookies and the data collected with them, such as an account-linked identifier or an IP address, can identify a person, they may be treated as personal data. So the sensible approach is: a site with only essential cookies does not need a pop-up, but should mention them in its privacy policy; a site running analytics or ad tools benefits from a short, honest banner. Check the current text on lex.uz from time to time, as legislation changes.

Foreign visitors bring European rules into play

The EU's GDPR and ePrivacy rules can apply to services aimed at users in Europe regardless of where the owner is based. Under them, non-essential cookies may only be set after prior consent, and refusing must be as easy as accepting. Picture a small hotel in Samarkand with an English, German and French site, a booking form and an ad pixel. Its audience is clearly European tourists, so a proper banner and loading analytics only after consent is the right call. A school site in Uzbek only, with no statistics, needs nothing more than a paragraph in its policy.

What a fair banner looks like

A good banner has short text, two equally visible buttons and a link to the policy. Most importantly, analytics scripts must not load at all until the visitor agrees.

<div id="cookie-banner" hidden>
  We use cookies for statistics.
  <button id="cookie-yes">Accept</button>
  <button id="cookie-no">Decline</button>
</div>
<script>
function loadAnalytics() {
  var s = document.createElement('script');
  s.src = 'https://analytics.example.uz/counter.js';
  s.async = true;
  document.head.appendChild(s);
}
var choice = localStorage.getItem('cookie_consent');
var banner = document.getElementById('cookie-banner');
if (choice === 'yes') {
  loadAnalytics();
} else if (choice === null) {
  banner.hidden = false;
}
document.getElementById('cookie-yes').onclick = function () {
  localStorage.setItem('cookie_consent', 'yes');
  banner.hidden = true;
  loadAnalytics();
};
document.getElementById('cookie-no').onclick = function () {
  localStorage.setItem('cookie_consent', 'no');
  banner.hidden = true;
};
</script>

Add a "Cookie settings" link in the footer that clears the stored choice and shows the banner again, so visitors can change their mind.

Secure your essential cookies too

Your own session cookie should be unreadable from JavaScript, sent only over HTTPS and withheld from cross-site requests. In PHP:

session_set_cookie_params([
    'lifetime' => 0,
    'path'     => '/',
    'secure'   => true,
    'httponly' => true,
    'samesite' => 'Lax',
]);
session_start();

Open the "Application" or "Storage" tab in your browser's developer tools to see every cookie your site sets. You will often find a forgotten chat widget or ad tag; removing it simplifies the banner question and speeds up the page. If your site runs tracking scripts and has European visitors, add a banner; if not, a clear privacy policy section is enough.

Related articles

🔑 IDOR: The Bug That Lets Users See Each Other's Data ↪️ Open Redirect Vulnerabilities: Simple but Dangerous 🚦 Rate Limiting in Nginx with limit_req and limit_conn 📅 A Website Update Schedule: A Monthly Security Plan
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓