How to Block a Site via Xiaomi Router: A Complete Guide with Step-by-Step Instructions

Blocking unwanted sites via Xiaomi’s router is an effective way to restrict access to certain resources for all devices on your network, especially for parents who want to protect their children from malicious content, or for office networks that require restricting access to social networks and entertainment venues. Unlike software solutions (such as parental-controlled antiviruses), router-level setting works for all connected devices, from smartphones to smart TVs, without having to install additional software on each of them.

In this article, we will discuss in detail how to block a site on popular models of Xiaomi routers (Mi Router 4, 4A, 5, AX3000 And in two ways: through the web interface and the Mi Wi-Fi mobile application, you will also learn about the nuances of blocking, possible errors and alternative methods of filtering content. The instructions are adapted for users of any level of training.

Preparing for a lock: what you need to know before starting

Before you start setting up, make sure your Xiaomi router supports the site blocking feature.Most current models (released after 2018) have this option, but in budget versions it may be missing or work with restrictions. For stable operation, it is recommended to update the software to the latest version through the Settings menu β†’ Firmware update.

It is also important to understand that the lock at the router level has its own characteristics:

  • πŸ”’ It is valid for all devices on the network, including guest connections (unless individual rules are configured).
  • 🌐 Doesn't work for HTTPS-Sites with the correct certificate (eg, google.com, facebook.com). DNS.
  • πŸ“± Bypasses lockdown VPN. If the device is on VPN, Access to blocked sites will remain.
  • ⏳ Caching DNS. After adding a website to the blacklist, it may take up to 10 minutes to apply the changes.
πŸ“Š What kind of website blocking do you prefer?
Through the router's web interface
Through the mobile app
Through third-party programs
Don't block websites

If your goal is to block the site from HTTPS (For example, vk.com or youtube.com, standard methods may not work:

  • πŸ”§ Use of alternatives DNS (OpenDNS or Cloudflare Family).
  • πŸ–₯️ Adjusting Parental Controls at the Operating System Level (Windows/macOS).
  • πŸ“± Content filtering applications (e.g. Kaspersky Safe Kids).

πŸ’‘

Before blocking the site, check its current IP-The address is used by the command command ping domain.ru in the command line. IP, What can make the blockage ineffective.

Method 1: Blocking the site through the web interface of the Xiaomi router

The web interface is the most versatile method that works on all Xiaomi routers, and you'll need a computer or a smartphone connected to the router's network to access it.

  1. Connect to the router's network via Wi-Fi or cable. Make sure your device receives IP-address (DHCP).
  2. Open the browser and enter in the address bar 192.168.31.1 (standard IP If the page doesn't open, check it out. IP your router via the ipconfig command (Windows) or ifconfig (macOS/Linux).
  3. Log in. By default, login and password β€” admin/admin (New models may require a link to your Mi Account.

After entering the control panel, go to the Additional settings section β†’ Security β†’ Access control (the name may vary slightly depending on the router model) Here you will find the tab "Blacklist" or "Block Sites".

Make sure the router is connected to the internet|

Check it out. IP-router address (192.168.31.1 or other)|

Prepare a list of domains for blocking|

Shut down. VPN on your device (if used)-->

To add the site to the blacklist:

  1. Click the Add button and enter the domain name of the site (e.g. odnoklassniki.ru). Specify the domain without a protocol (do not need to write "https://" or").
  2. Select the type of lock: πŸ”— By domain – blocks all subdomains (for example, mail.odnoklassniki.ru will also be blocked). πŸ“Œ Po Po Po IP-Blocking access to a specific address IP (If the site changes the domain frequently). ⏰ Scheduled – Restricts access at certain hours (useful for parental controls).

Save the changes and restart the router (optional, but recommended for the rules).

Model routerThe path to lock settingsSupport HTTPS-lock-in
Mi Router 4/4AAdditionally. β†’ Security β†’ Access management❌ No.
Mi Router 5Settings β†’ Parental control β†’ Blacklist⚠️ Partially (only by IP)
AX3000/AX6000System system β†’ Security β†’ Content filteringβœ… Yes (with adjustment) DNS)
Mi Router 3G/3CAdditionally. β†’ Network management β†’ Lockdown❌ No.

If it still opens after adding a website to the blacklist, check:

  • πŸ”„ Cash. DNS on your device (clean it with the ipconfig command) /flushdns Windows).
  • πŸ”— Protocol used. Sites with HTTPS can bypass the lock (solution – setup) DNS-server).
  • πŸ“‘ Guest network: Make sure the rules apply to all connections, not just the main network.

πŸ’‘

Domain locking only works for HTTP-For websites. HTTPS additional adjustments will be required DNS or use of third-party filtering services.

Method 2: Block sites through the Mi Wi-Fi app

The Mi Wi-Fi mobile app (available for Android and iOS) offers a more user-friendly interface for router management, including a website lock feature, which is suitable for those who prefer to configure the network from a smartphone. Note that not all router models support full functionality through the application - some options can only be available in the web interface.

To block the site via Mi Wi-Fi:

  1. Download and install the app from Google Play or the App Store.
  2. Connect your smartphone to your Xiaomi router’s network and open the app. Sign in with your Mi Account (if required).
  3. Go to Devices or Network (depending on the version of the app) and select Parental Control or Security.
  4. Find the option β€œBlacklist” or β€œBlock Sites” and add the domain manually.

The Mi Wi-Fi app also has a whitelist feature, which allows you to only access certain sites, blocking all others, which is useful for creating a tightly controlled network (for example, for children), to activate the whitelist:

  1. Turn on the option Whitelist mode.
  2. Add permitted domains (e.g. school.edu.ru, wikipedia.org).
  3. Save the settings and restart the router.
What if the Mi Wi-Fi app doesn’t find the router?
1. Make sure your smartphone is connected to the router network (not via mobile internet). 2. Check if Bluetooth is on on your smartphone (some models use it for initial setup). 3. Reboot the router and try again through 1-2 minute. 4. If the router is new, it may need to be set up initially via the web interface (192.168.31.1). 5. Update the Mi Wi-Fi app to the latest version.

Please note the limitations of the application:

  • πŸ“΅ Not all models support Mi Wi-Fi locking (e.g. Mi Router). 3G You may not be able to display this option).
  • πŸ”„ Delayed application: Changes can only take effect after the router restarts.
  • πŸ“± Limited functionality compared to the web interface (for example, there is no possibility of blocking the web interface) IP).

If the application does not have the option to block sites, try updating the router firmware or using the web interface. Also check if the function is hidden behind additional settings (for example, in the section For power users).

Lockdown HTTPS-Websites: Bypassing the limitations of standard methods

The main problem when blocking sites through the Xiaomi router is working with the Internet. HTTPS-The fact is that modern browsers and operating systems are actively using traffic encryption, which makes it impossible to analyze domain names at the router level:

Method 1: Use of alternatives DNS-server

Services like OpenDNS or Cloudflare Family allow you to filter content at a level. DNS. To set them up:

  1. Go to the router web interface (192.168.31.1) and open the Internet section. β†’ Settings DNS.
  2. Instead of automatic DNS give me the address: πŸ”΅ Cloudflare Family: 1.1.1.3 (blocks malware and adult websites). 🟒 OpenDNS FamilyShield: 208.67.222.123 and 208.67.220.123.

Save the settings and restart the router.

Method 2: Blocking the IP-address

If the website is using static IP, You can block it directly. IP You can use the command ping domain.ru in the command line. Then add it to the router's blacklist in the Security section. β†’ Access management β†’ Lock-in IP.

Method 3: Set up parental controls on the device

If the router-level lock doesn’t work, consider local solutions:

  • πŸ–₯️ Windows: Use the hosts file (path: C:\Windows\System32\drivers\etc\). Add a line of view 127.0.0.1 website.
  • πŸ“± Android: Apps like BlockSite or Digital Wellbeing (built-in parental controls).
  • 🍎 macOS/iOS: Time screen settings in System settings β†’ Screen time.

πŸ’‘

To block YouTube or Netflix via Xiaomi router, standard methods will not work, such as using specialized services like NextDNS or setting up filtering at the provider level (if such a service is available).

Common mistakes and their solutions

When setting up a website block, users often face typical problems, and consider the most common ones and how to fix them:

Problem 1: The site is not blocked

Possible causes and solutions:

  • πŸ”— Used. HTTPS β†’ Switch to alternatives DNS (see previous section).
  • πŸ”„ Cash. DNS β†’ Clear the cache on the device (ipconfig) /flushdns Windows).
  • πŸ“‘ Guest network β†’ Check if the rules apply to the guest network in the router settings.
  • πŸ”§ Incorrect domain format β†’ Specify the domain without http:// and www (e.g. vk.com, not https://www.vk.com).

Problem 2: After the Internet was blocked, the Internet disappeared

This can happen if you accidentally block it. DNS-servers or major system domains to restore access:

  1. Connect to the router via cable (if Wi-Fi is not working).
  2. Go to the web interface and delete the latest added lock rules.
  3. Check the settings. DNS β€” They must be either automated or point to trusted servers (e.g. 8.8.8.8 from Google).

Problem 3: Lockdown rules are reset after rebooting

This is typical of routers with unstable firmware.

  • πŸ”„ Update the router to the latest version.
  • πŸ’Ύ Make a backup of the settings in the System section β†’ Backup.
  • πŸ”§ Reset the router to factory settings and set up the lock again.
How to reset the Xiaomi router to factory settings?
1. Find the Reset button on the back of the router (usually recessed in the case). 2. Press and hold it. 10-15 seconds with a paper clip or toothpick. 3. Wait until the indicators on the router start flashing – this is a reset signal. 4. Connect to the router network (it will be called) Xiaomi_XXXX) and perform the initial setup through 192.168.31.1.

Problem 4: Locking doesn’t work on all devices

If the rules apply selectively, check:

  • πŸ“± VPN device-wise β†’ Turn it off. VPN or add locking rules to the settings VPN.
  • πŸ”Œ Cable connection/Wi-Fi β†’ Make sure that the rules apply to both types of connections.
  • 🌐 Used DNS β†’ Alternatives may be provided on the device. DNS (For example, 1.1.1.1. Replace them with DNS router.

πŸ’‘

If after all the manipulations the site still opens, check it through the WhatsMyDNS service - perhaps the domain uses several different domains. IP-Addresses and you need to block them all.

Alternative methods of filtering content

If Xiaomi’s built-in router tools don’t work, consider third-party solutions. They offer more flexible settings and often do better. HTTPS-traffic.

1. NextDNS

Free service with customization of blocking rules, supports filtering by category (social networks, adult content, gambling) and allows you to create whitelists/blacklists.

  1. Register at nextdns.io.
  2. Create a configuration with the right rules.
  3. In the router settings, specify DNS-servers 45.90.28.167 and 45.90.30.167.

2. OpenDNS

One of the oldest services DNS-Offers ready profiles (e.g. FamilyShield for blocking adult content) and the ability to manually configure:

  1. Select the appropriate profile on opendns.com.
  2. In the control panel of the router specify DNS-addresses 208.67.222.222 and 208.67.220.220.
  3. If necessary, create an account to fine-tune the rules.

3. Local solutions

If you only need to lock on one device, it is easier to use specialized programs:

  • πŸ–₯️ Windows: Cold Turkey, Freedom.
  • πŸ“± Android: BlockSite, StayFocusd.
  • 🍎 iOS/macOS: Screen Time (Integrated Tool).

4. Routers with advanced functions

If you want maximum flexibility, consider switching to routers that support OpenWRT or DD-WRT. These firmwares allow you to install additional modules for deep traffic filtering (for example, AdBlock or Squid Proxy.

Security and privacy: what to consider

Blocking websites via a router is a powerful tool, but using it requires attention to security and privacy issues.

1. Protecting router settings

If other users have access to your router, they can cancel the lock.

  • πŸ” Change the standard admin password (admin/admin) complex.
  • πŸ”’ Disable remote access to the control panel in the System settings β†’ Remote management.
  • πŸ“± Link router to Mi Account for additional protection.

2. Logistic of traffic

Some Xiaomi routers keep logs of visited sites. If this is critical for privacy, disable logging in the System section β†’ Logs or clean them regularly. note that without logs it will be more difficult to diagnose lock problems.

Bypassing the lockdown

Users can circumvent your limitations by:

  • πŸ”— VPN β†’ Block the popular ones VPN-services (e.g. expressvpn.com) through a blacklist.
  • 🌐 Alternatives DNS β†’ Set up on the router forcing the use of your DNS.
  • πŸ“‘ Mobile Internet β†’ Limit access to network settings on devices (e.g., through parental controls).

4. Legal aspects

In some countries, blocking access to certain resources may be regulated by law, such as Russia’s banned websites registry (Roskomnadzor), and additional blocking may be excessive.

πŸ’‘

If you block websites for children, talk to them about the reasons for the restrictions, which will help to avoid attempts to circumvent and build trusting relationships.

FAQ: Frequent questions about blocking sites on Xiaomi

Can I block a website for only one device on the network?
Yes, but not through the standard settings of the Xiaomi router. MAC-device-address IP customized DHCP (Network β†’ DHCP β†’ Tethering IP and MAC). Create a locking rule tied to this IP. Or use third-party solutions like NextDNS, where you can configure filtering by device.
How to block YouTube or TikTok via Xiaomi router?
The standard domain lock (youtube.com, tiktok.com) will not work because of the HTTPS. Alternative means: πŸ”§ Use NextDNS or OpenDNS with pre-configured filters. πŸ“± Set up parental controls on the device itself (e.g., through Google Family Link for Android). πŸ–₯️ Block it. IP-YouTube server addresses (but they change frequently) You can also use the "Restricted Access" mode in your Google account settings for YouTube.
Why does the website open after a while?
It's connected to: πŸ”„ Caching DNS on the device or with the provider (solution: clear the cache or change the cache) DNS). πŸ”— Dynamic. IP Site (solution: block by domain, not by domain) IP). πŸ“‘ Change the settings of the router (check if the rules reset after updating the firmware). To diagnose, use the command nslookup domain.ru - it will show the current IP website.
Can you block websites by keywords (for example, all sites with the word β€œcasino”)?
No, Xiaomi routers don't support keyword filtering.Alternatives: πŸ”§ Use NextDNS or OpenDNS – these allow you to block sites by category (including Gambling"). πŸ–₯️ Set up browser-level filtering (extensions like uBlock Origin with custom rules). Full keyword filtering requires a proxy server or specialized software (such as Squid).
How to unblock a website if you forget the password from the router?
If you can’t log in to the control panel: Reset the router to factory settings (Reset button on the 10-15 Connect to the router network (it will be called) Xiaomi_XXXX) And go in. 192.168.31.1. Use a standard login/password: admin/admin. If the router is linked to your Mi Account, restore access via πŸ“– Read also How to turn off WPS on the Xiaomi router: full instructions Detailed instructions for disabling WPS Set up Wi-Fi network security How to change the language on the Xiaomi router: Step-by-step instructions 2026 Detailed guide to changing the interface language on Xiaomi routers (Mi Router, AX3600, AX6000 Entrance to the admin of the Xiaomi router: step-by-step instructions 2026 How to enter the control panel of routers Xiaomi Mi Router 4/4A/4C/5/6/AX3000/AX6000 through 192.168.31. How to reset the password on the Xiaomi router, if you forgot the old one - 3 ways Step-by-step instructions for changing the password on the Xiaomi router when you lose the old one. Reset through the button, web-in How to find out the password from the Xiaomi Mi 3 router: 5 working ways Forgot the Wi-Fi password on Xiaomi Mi 3? Learn how to restore access to a router through a web interface How to connect a Xiaomi router 4A Internet: Step-by-step instructions Full setting of the router Xiaomi Mi Router 4A. How to log in to 192.168.31.1, configure PPPoE and Wi-Fi network πŸ“± XiaoMaster πŸ”“ Reset and release Β· βš™οΈ System setup Β· πŸ’Ύ Memory and files Β· πŸ”Š Sound and vibration Β· πŸ“Έ Camera and photo Β· πŸ“‘ Communication and network Home Β· About the project Β· Contacts Β· Privacy Β© XiaoMaster, all rights reserved. Accept document.getElementById('pbMenuBtn')?.addEventListener('click', () => { document.getElementById('pbMainNav')?.classList.toggle('pb-nav-open'); }); // Dropdown menu toggle (click for touch devices) document.querySelectorAll('.pb-dropdown-toggle').forEach(btn => { btn.addEventListener('click', (e) => { e.stopPropagation(); btn.closest('.pb-nav-dropdown').classList.toggle('pb-dd-open'); }); }); document.addEventListener('click', () => { document.querySelectorAll('.pb-nav-dropdown.pb-dd-open').forEach(d => d.classList.remove('pb-dd-open')); }); (function() { const popup = document.getElementById('cookie-consent'); const btn = document.getElementById('cookie-accept'); if (popup && btn &&!localStorage.getItem('cookie-accepted')) { setTimeout(() => popup.classList.add('pb-cookie-visible'), 1500); btn.onclick = () => { localStorage.setItem('cookie-accepted','true'); (function(d,s){d.getElementById("licnt06C4").src= "https://counter.yadro.ru/hit?t26.5;r"+escape(d.referrer)+ ((typeof(s)=="undefined")?"":";s"+s.width+"*"+s.height+"*"+ (s.colorDepth?s.colorDepth:s.pixelDepth))+";u"+escape(d.URL)+ ";h"+escape(d.title.substring(0,150))+";"+Math.random()})(document,screen) πŸͺ We use cookies to improve the operation of the website. popup.classList.remove('pb-cookie-visible'); }; } })(); function pbPollVote(el) { var poll = el.closest('.pb-poll'); if (poll.classList.contains('voted')) return; poll.classList.add('voted'); el.classList.add('selected'); var opts = poll.querySelectorAll('.pb-poll-option'); var n = opts.length; var raw = []; var sum = 0; for (var i = 0; i < n; i++) { var v = Math.random() * 50 + 5; if (opts[i] === el) v += 30; raw.push(v); sum += v; } var pcts = raw.map(function(v) { return Math.round(v / sum * 100); }); var diff = 100 - pcts.reduce(function(a,b){ return a+b; }, 0); pcts[Array.from(opts).indexOf(el)] += diff; setTimeout(function() { opts.forEach(function(opt, i) { opt.querySelector('.pb-poll-bar').style.width = pcts[i] + '%'; opt.querySelector('.pb-poll-pct').textContent = pcts[i] + '%'; }); }, 50); }