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.
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.
- Connect to the router's network via Wi-Fi or cable. Make sure your device receives IP-address (DHCP).
- 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).
- 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:
- 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").
- 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 router | The path to lock settings | Support HTTPS-lock-in |
|---|---|---|
| Mi Router 4/4A | Additionally. β Security β Access management | β No. |
| Mi Router 5 | Settings β Parental control β Blacklist | β οΈ Partially (only by IP) |
| AX3000/AX6000 | System system β Security β Content filtering | β Yes (with adjustment) DNS) |
| Mi Router 3G/3C | Additionally. β 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:
- Download and install the app from Google Play or the App Store.
- Connect your smartphone to your Xiaomi routerβs network and open the app. Sign in with your Mi Account (if required).
- Go to Devices or Network (depending on the version of the app) and select Parental Control or Security.
- 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:
- Turn on the option Whitelist mode.
- Add permitted domains (e.g. school.edu.ru, wikipedia.org).
- Save the settings and restart the router.
What if the Mi Wi-Fi app doesnβt find the router?
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:
- Go to the router web interface (192.168.31.1) and open the Internet section. β Settings DNS.
- 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:
- Connect to the router via cable (if Wi-Fi is not working).
- Go to the web interface and delete the latest added lock rules.
- 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?
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.
- Register at nextdns.io.
- Create a configuration with the right rules.
- 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:
- Select the appropriate profile on opendns.com.
- In the control panel of the router specify DNS-addresses 208.67.222.222 and 208.67.220.220.
- 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.