How to block a site on a Xiaomi phone: all the ways from MIUI to the router

Why Xiaomi Owners May Need to Block Websites

Xiaomi’s MIUI-based smartphones offer a wealth of content control capabilities, but not all users know how to effectively restrict access to certain web resources. Blocking sites is relevant in several scenarios: parents want to protect children from unwanted content, employees want to restrict access to social networks during working hours, and some users simply seek to increase their productivity by removing distracting platforms.

Unlike iOS, where the lock is implemented through Screen Time, MIUI does not have a built-in universal tool to block sites in all browsers. However, this does not mean that the task is impossible: the system offers alternative ways through security settings, third-party applications and even router parameters.

In this article, we will discuss 5 working methods, including built-in Xiaomi features, setting popular browsers (Chrome, Mi Browser), specialized utilities and even locking at the Wi-Fi level. Each method is tested on current models of Redmi Note 12, POCO X5 Pro and Xiaomi 13T with MIUI 14/15.

Method 1: Blocking through Digital Well-Being (MIUI 12 and later)

The easiest way to restrict access to websites is to use the built-in Digital Wellbeing tool, which is suitable for blocking sites in Google Chrome and Mi Browser, but has a limitation: it only works for the user profile that enabled the feature.

To activate the lock:

  1. Open Settings β†’ Digital Well-Being and Parental Controls.
  2. Slip on the chart "Control Panel" and select the Timer of use of applications.
  3. Find Chrome or Mi Browser in the list and click on the settings gear.
  4. Activate the option to limit access to sites and add the URL to the blacklist.

Important: this method does not block sites in other browsers (for example, Firefox or Opera), and after rebooting the phone or resetting the settings, the list of blocked sites can be reset.

Update MIUI to the latest version (minimum MIUI 12 required)

Make sure that the browser (Chrome/Mi Browser) is updated in Google Play

Turn off VPN – it can bypass restrictions

Sync your Xiaomi account to save your settings-->

Method 2: Using Mi Browser (built-in lock)

Xiaomi’s proprietary Mi Browser browser has a built-in website blocking feature that works independently of β€œDigital Wellbeing” and is suitable for users who prefer standard solutions and do not want to install third-party apps.

Instructions for setting:

  1. Open the Mi Browser and tap the three dots in the upper right corner.
  2. Go to Settings β†’ Privacy and Security.
  3. Choose Block Sites and add URLs manually (e.g. vk.com or tiktok.com).
  4. Activate the switch Enable the lock.

Features of the method:

  • πŸ”’ Only works in Mi Browser – other browsers ignore this list.
  • πŸ“± Supports keyword blocking (for example, the word β€œcasino” will block all sites with it in the Internet). URL).
  • πŸ”„ The lock list syncs with the Xiaomi account if the appropriate option is enabled.

πŸ’‘

If the site is not blocked, try adding it with the prefix https:// or http://. Some versions of the Mi Browser are sensitive to the URL format.

Method 3: Third-party applications for blocking (BlockSite, StayFocusd)

If Xiaomi’s built-in tools don’t cover your needs, you should look at specialized apps from Google Play. The most popular solutions are BlockSite and StayFocusd, which offer flexible settings and cross-browser support.

Advantages of third-party applications:

  • 🌐 Works in all browsers (Chrome, Firefox, Opera, etc.).
  • ⏰ Allows you to set a lock schedule (for example, only during working hours).
  • πŸ” Supports blocking by keywords in URL and page titles.
  • πŸ“Š Keep statistics of visits and attempts to bypass the lock.

How to set up BlockSite:

  1. Install the app from Google Play and grant permission to access special features (Settings β†’ Special Features β†’ BlockSite).
  2. Add sites to the blacklist through the main menu of the application.
  3. Activate the option to Block in the background to work without an open browser.
πŸ“Š What website blocking app do you prefer?
BlockSite
StayFocusd
Digital Wellbeing (embedded)
Other
I don't use it.

Limitations:

  • ⚠️ Some apps require root rights to be completely blocked (e.g., to restrict games or social media).
  • ⚠️ After removing the application, all restrictions are automatically removed.

Method 4: Blocking through hosts files (for advanced users)

The hosts file editing method is one of the most reliable ways to block sites at the system level, and works in all browsers and applications, but requires superuser rights (root) or use of the site. ADB-team.

Step-by-step:

  1. Connect your phone to your PC and activate USB Debugging in the developer settings (Settings β†’ About Phone β†’ MIUI version – tap 7 times to unlock the developer menu).
  2. Open the command line on PC and execute: adb shell su mount -o rw,remount /system echo "127.0.0.1 vk.com" >> /system/etc/hosts mount -o ro,remount /system
  3. Reboot the phone.

Advantages of the method:

  • πŸ”§ Works at the system level – blocks sites even in applications (for example, the built-in browser on Instagram).
  • πŸš€ It does not require constant operation of background processes (unlike applications).
  • πŸ”’ You can block thousands of sites by massively adding entries to hosts.
What to do if there are no root rights?
No root editing /system/etc/hosts It is not possible, but an alternative method can be used: 1. Install the app DNS66 F-Droid. 2. Set up custom. DNS-server, 1.1.1.3 Blocking Adult Content). 3. Add domains to the blacklist manually, which is less reliable, but doesn't require root.

Risks:

⚠️ Warning: Incorrect editing of the hosts file can lead to loss of Internet access or malfunction of applications.Always back up the original file before making changes.

Method 5: Blocking at the Wi-Fi Router Level

If you want to block sites on all devices on your home network (including phones, tablets, and PCs), the most effective way is to set the restrictions directly on your Wi-Fi router, which is independent of your phone model and works even on devices without special software.

Instructions for routers Xiaomi Mi Router:

  1. Open the router’s web interface at 192.168.31.1 (the default login and password is usually admin/admin).
  2. Go to the Access Control section β†’ Blacklist.
  3. Add site domains (like facebook.com) and save settings.
  4. Apply the rules to specific devices on their MAC-addresses (optional).

Comparison of blocking methods:

MethodLevel of lockdownRoot is required.It's in the background.Support for all browsers
Digital well-beingAnnexNo.Yes.Partially (Chrome, Mi Browser)
Mi BrowserbrowserNo.Yes.No (only Mi Browser)
BlockSiteSystem systemNo (but you need special licenses)Yes.Yes.
Editing by hostsSystem systemYes.Yes.Yes (including annexes)
Router settingsNetworkNo.Yes.Yes (all devices)

The advantages of blocking through the router:

  • 🌍 It works on all devices on the network, including smart-TB and laptops.
  • πŸ•’ You can set a lock schedule (for example, from 22:00 to 7:00).
  • πŸ”’ Bypassing restrictions VPN Only if they are configured on the device, not on the router.

πŸ’‘

Blocking at the router level is the only method that works even if the user reinstalls the firmware or resets the phone to factory settings.

Frequent problems and their solutions

Even after you set up the lock correctly, Xiaomi users may encounter difficulties.

Problem 1: The site is blocked but opened via a VPN.

Solution: VPN encrypts traffic and bypasses most blockages, to prevent this:

  • πŸ”Œ Lock the installation. VPN-Applications through Settings β†’ Annexes β†’ Special access β†’ Device administrators.
  • 🌐 Set up the lock. VPN-sites (e.g. protonvpn.com) via router.

Problem 2: After the MIUI update, the lock was reset.

Solution: Xiaomi's built-in features (e.g., Digital Well-being) can be reset with major updates.

  • πŸ“± Use third-party apps (such as BlockSite) with a Google account link.
  • πŸ”§ Regularly export the list of blocked sites to the file (available in the settings of most blockers).

Problem 3: The locking is unstable (it works, then it does not).

Solution: Instability is usually associated with DNS caching.

  • πŸ”„ Clear the cache DNS via DNS Changer.
  • πŸ“΅ Reboot your phone and router.
  • πŸ› οΈ Disable the function "Smart resolution" DNS" in the Wi-Fi settings (Settings) β†’ Wi-Fi β†’ Additionally).

⚠️ Note: If you are using duality SIM-If you switch between mobile internet and Wi-Fi frequently, the router lock will stop working when you change network. + BlockSite).

Can I block the site without installing additional apps?
Yes, Xiaomi has two built-in ways: through Digital Well-Being (only available in Chrome and Mi Browser); through Mi Browser settings (Site Blocking) but these methods are not universal – all browsers will require third-party software or router configuration to be completely blocked.
How to block a website on your child’s phone so that he can’t cancel the restrictions?
To securely lock, combine several methods: Set up a lock on your router (this will affect all devices on the network). Set up BlockSite and password-protect it in the application settings. Turn off the ability to install new apps through Settings β†’ Applications β†’ Special Access β†’ Install unknown applications. Create a guest profile in MIUI with limited rights (Settings β†’ System β†’ Multiplayer Mode). You can also use parental control apps such as Google Family Link or Kaspersky Safe Kids.
Why Mi Browser locking doesn’t work HTTPS-webpage?
This is a well-known feature of the Mi Browser: it only blocks the device. HTTP-traffic, because HTTPS Solutions: Use BlockSite or another third-party blocker with support HTTPS. Set up a lock on a router – most modern routers can filter HTTPS. Add a website to the blacklist through Digital Well-Being (works for and for the website) HTTPS).
How to Unblock a Website If You Forgot Your BlockSite Password?
If you forgot your BlockSite password, try: Reinstall the app (but it will reset all settings); Restore access via the attached email (if the feature has been activated); Contact BlockSite with proof of account ownership. If nothing helps, you only have to reset your phone to factory settings (Settings β†’ Phone Reset β†’), but this will delete all data.
Can you block a website only at certain times (for example, during business hours)?
Yes, this is a good thing: BlockSite has a lock schedule. StayFocusd allows you to set time limits. Router settings - most modern routers (including Xiaomi Mi Router) support locking time. Example settings in BlockSite: Add a site to the blacklist. Put a tab on it and select a schedule. Specify days of the week and time intervals (for example, 9:00-18:00).