How to block a site in Yandex Browser on Xiaomi phone: all working ways

Why Block Sites on Xiaomi Smartphone and How It Works

Have you ever encountered a situation where a child accidentally opens unwanted content and ad banners are redirected to questionable resources? Or maybe you are annoyed by news portals that automatically open in new tabs? Blocking sites in the Yandex Browser on Xiaomi smartphones (including Redmi Note 12, POCO X5, Mi 11 and other models) solves these problems. But how do you do it right to get around the limitations of the browser and system?

Unlike desktop versions, the mobile Yandex Browser does not have a built-in function of blocking sites through settings. However, there are workarounds, from using a hosts file to third-party applications like BlockSite or Digital Wellbeing. It is important to understand that some methods require root rights (which is not safe for most users), while others work only on certain versions of MIUI. In this article, we will discuss all the current ways to block sites on Xiaomi in 2026, including those that do not require technical skills.

Before you go to the instructions, note that blocking at the browser level is easily done through another browser (for example, Chrome or Firefox).

πŸ“Š Why you want to block websites on Xiaomi?
Restriction of access for children
Protection against phishing and fraudsters
Blocking annoying ads
Improving productivity
Other

Method 1: Blocking through a hosts file (without root)

The hosts file editing method is one of the most reliable, but it takes care to match domain names (like vk.com) with domain names. IP-If you redirect an unwanted site to a non-existent site IP (For example, 127.0.0.1), the browser will not be able to open it.

On Xiaomi, you can edit hosts without root rights through ADB (Android Debug Bridge).

  1. Turn on USB debugging: Go to Settings β†’ About Phone β†’ MIUI version and tap 7 times on this item to activate Developer Mode. Then go back to Settings β†’ Additional β†’ For Developers and turn on USB Debugging.
  2. Connect your phone to your PC and install it. ADB-Drivers (you can download from the Xiaomi website or through Mi) PC Suite).
  3. Open the command line on your PC and type: Adb devices Make sure the device is identified (serial number should appear).
  4. Download a modified hosts file with locks (for example, from the site winhelp.online) or create your own by adding lines of the form: 127.0.0.1 vk.com 127.0.0.1 www.vk.com
  5. Upload the file to your phone: adb push C:\path\to file\hosts/sdcard/ Then transfer it to the system folder: adb shell su mount -o rw,remount/system cp/sdcard/hosts /system/etc/hosts chmod 644 /system/etc/hosts mount -o ro,remount /system

Once the phone is restarted, blocked sites will no longer open in any browser, including Yandex Browser.

  • πŸ”„ Resets after update MIUI β€” The hosts file can be replaced with a standard host file.
  • πŸ› οΈ Requires reconfiguration when changing firmware.
  • πŸ“± It does not work for some models with MIUI 14+ Due to the enhanced protection of system files.
What if the ADB can’t see the device?
If the adb device command doesn’t show your Xiaomi, check: 1. If drivers are installed (download Mi). USB Driver from official website) 2. Is file transfer enabled (MTP) when connected USB. 3. Does the antivirus block the connection (turn it off temporarily). 4. Try another one USB-cable (preferably original from Xiaomi).

β˜‘οΈ Preparation for editing hosts

Done: 0 / 4

Method 2: BlockSite application (without root)

If editing system files seems complicated, use BlockSite, which blocks sites at the browser level and works without root permissions, the main advantage is a simple interface and the ability to set a password for changes.

Instructions for setting:

  1. Download BlockSite from Google Play.
  2. Open the application and grant permissions to access special features (required for blocking).
  3. Click + at the bottom of the screen and enter the URL of the site you want to block (such as tiktok.com).
  4. Activate the option Block in Yandex Browser in the application settings.

BlockSite supports:

  • πŸ”’ Blocking by Keywords (for example, all websites with the word β€œcasino").
  • πŸ•’ Schedule setting (for example, block social networks from 9:00 to 18:00).
  • πŸ”‘ Password protection against disabling the lock.

Limitations of the method:

  • 🚫 Does not block sites in other browsers (if the user installs Chrome, the restrictions will not work).
  • πŸ“± On some Xiaomi models (e.g. Redmi) 10C) may require additional permissions in the settings β†’ Annexes β†’ Special access.

πŸ’‘

If BlockSite does not block sites in Yandex Browser, check if the option "Block in other browsers" is enabled in the application settings. Also clear the Yandex Browser cache after setting up.

Method 3: Parental Control in MIUI

Xiaomi smartphones based on MIUI 12+ have a built-in parental control function that allows you to restrict access to sites and applications, this method does not require the installation of third-party programs and works at the system level.

How to set up:

  1. Open the Settings. β†’ Parental control.
  2. Create a profile of your child (name and age).
  3. Select Website Restrictions and blacklist sites (e.g. twitter.com).
  4. Activate the option to Block in browsers.

Advantages of the method:

  • πŸ” Works in all browsers, including Yandex Browser and Chrome.
  • πŸ•’ Allows you to set time limits for using the device.
  • πŸ“Š Keeps statistics of visited sites.

Disadvantages:

  • πŸ”“ Children can turn off control if they know the password from their Mi Account.
  • πŸ“± In some models (for example, POCO F4) The function may be absent or may not work smoothly.

πŸ’‘

Parental controls in MIUI are the most reliable way to restrict access to children, as they block sites at the system level, not just in one browser.

Method 4: Configure DNS (to block by category)

Change of change DNS-The system allows you to block entire categories of sites (eg, adult content, gambling), for this, services like OpenDNS or CleanBrowsing will be suitable.

Instructions:

  1. Go to Settings. β†’ Wi-Fi (or Mobile Network).
  2. Click on the connected network and select Change Network β†’ Additional β†’ IP settings.
  3. Set up a static. IP enter DNS-Servers: To block adult content: 185.228.168.168 (CleanBrowsing Family Filter) To block social networks: 185.228.168.10 (CleanBrowsing Adult Filter).

Save the settings and restart the phone.

This method blocks sites at the network level, so it will work:

  • 🌐 In all browsers (Yandex Browser, Chrome, Firefox).
  • πŸ“Ά Both via Wi-Fi and mobile internet (if configured) DNS mobile-network).

Limitations:

  • πŸ”§ Not all. DNS-servers are equally efficient (some sites may slip through).
  • πŸ“± On Xiaomi MIUI 14 may need to disable the Private DNS network-setting.
DNS-serverCategories of lockdownIs it good for kids?
185.228.168.168Adult content, malicious websitesYes.
185.228.168.10Social media, gamblingYes.
1.1.1.3Phishing, malwarePartially.
94.140.14.14Advertising, trackersNo.

πŸ’‘

To check if it works DNS-If you block, try to open a blocked site (for example, pornhub.com when using a family filter). If the page does not load, the setting worked.

Method 5: Using Safe Mode in Yandex Browser

Yandex Browser for Android has a built-in Safe Mode that blocks dangerous and fraudulent sites. Although it does not allow you to add sites to the blacklist manually, it can be used to protect against phishing.

How to turn on:

  1. Open Yandex Browser and go to Settings β†’ Security.
  2. Activate the option Safe Mode.
  3. Choose the level of protection: High (blocks suspicious sites) or Medium (only dangerous).

What blocks Safe Mode:

  • 🎣 Phishing sites (fake pages of banks, social networks).
  • πŸ’» Malware sites.
  • πŸ”ž Adult websites (with high level of protection).

Limitations:

  • 🚫 It does not allow you to add sites manually.
  • πŸ“± Can block legitimate resources (false positives).
How to disable Safe Mode if it blocks the right site?
If Safe Mode mistakenly blocks a secure site, disable it temporarily in your browser settings or add the site to the Exclusions (if such an option is available in your version of Yandex Browser).

Frequent Mistakes and How to Avoid Them

When blocking sites on Xiaomi, users often face typical problems, and here are the most common mistakes and solutions:

  • πŸ”„ Sites are blocked, but only in Yandex Browser: If you used BlockSite or edited hosts, but sites open in Chrome, then the blocking works only at the browser level. MIUI or change DNS.
  • πŸ”§ After updating MIUI lock reset: This is a typical problem when editing hosts.Solution: use BlockSite or set up parental controls that don't reset when updating.
  • πŸ“΅ It's not working. DNS-Servers: Check if the private is enabled DNS in network settings (Settings) β†’ Wi-Fi β†’ Turn it off or point the same ones. DNS-addresses in the field Private DNS.

⚠️ Note: If you use a hosts file to block, never edit it manually through standard text editors (such as Notepad).This can cause file damage and Internet problems. Always use specialized applications like Hosts Editor.

⚠️ Note: Some Xiaomi models (e.g. Redmi Note 11 Pro)+) The parental control function may be hidden. To activate it, update your firmware to the latest version. MIUI Use alternative methods (e.g. Google Family Link).

FAQ: Answers to Frequent Questions

Can I block a site in Yandex Browser without third-party applications?
Yes, but with reservations. Yandex Browser itself does not have a manual website blocking feature, but you can: Use Safe Mode (blocks only dangerous resources); Set up parental control MIUI (works at the system level); Change hosts or DNS (requires technical skills); For flexible settings (for example, locking on a schedule), you will still need third-party applications like BlockSite.
Why do hosts block sites anyway?
The reasons may be: The hosts file was not saved with the correct rights (chmod 644). The site uses HTTPS and bypasses the lock (solution: add to hosts an entry for www.site.com and without www.browser cache DNS (clear the cache in the browser settings); the phone has enabled a VPN or Proxy that ignores local settings. Check the correct editing of hosts using the command: adb cat /system/etc/hosts shells.
How to block the site for always so that the child can not bypass the block?
For maximum protection, combine several methods: Set up MIUI parental controls with a password. Set up BlockSite and password-protect it. Change the DNS to a family filter (e.g. 185.228.168.168). Remove or block other browsers (Chrome, Firefox) through MIUI settings. Activate secure mode in Yandex Browser. Even then, there is no guarantee: an experienced user can reset settings or use a VPN. For full control, consider specialized solutions like Kaspersky Kids Safe.
Does this work on POCO and Black Shark?
Yes, all of the methods described here are applicable to POCO and Black Shark smartphones, as they are based on MIUI (or its modifications like POCO Launcher). Exceptions: Black Shark may not have built-in parental controls (use Google Family Link). On some POCO models (for example, POCO X3 Pro), editing hosts requires unlocking the bootloader.
Can I block a website at a certain time?
Yes, BlockSite is a good fit: Add a site to a blacklist. Click on it in the blocked list. Choose a schedule and specify time slots (e.g. 22:00 to 7:00). Alternatively, use Digital Wellbeing (embedded in Android) to limit your browser usage time.