
in the process of daily use of the network, many people will have the need for URL blocking, such as parents in order to avoid children contact with bad content, enterprises in order to improve the efficiency of employees to reduce irrelevant website visits, or individuals want to block some interference with their attention URL. URL blocking methods in different scenarios are different, and the difficulty of operation is also different. This article will start from multiple dimensions, explain in detail the specific steps to achieve URL blocking, and the key matters to be paid attention to in the operation process, to help users with different needs can successfully complete URL blocking settings.
for the URL shielding requirements of a single device, using the system's own tools is the most convenient way, no need to install additional software, and the operating cost is low.
1, Windows system URL shielding operation
Windows system can implement URL blocking by modifying the hosts file. First find the path of the hosts file, usually located in the C:\\ Windows\\ System32\\ drivers\\ etc directory, right-click to open the file with Notepad. Add the URL that needs to be masked at the end of the file, in the format of 127.0.0.1 target URL, each line corresponds to a URL that needs to be masked, and save the file after adding it. It should be noted that modifying the file requires administrator privileges. If the saving fails, you can right-click Notepad and select Run as an administrator before operating.
2, Mac system URL shielding operation
Mac the URL blocking of the system can also be done by modifying the hosts file. Open the end point application in the startup desk, enter the sudo nano /etc/hosts command and press Enter, enter the computer boot password and enter the hosts file editing interface. Also add the content 127.0.0.1 the target URL at the end of the file, press Control + O to save after editing, and then press Control + X to exit the end point. At this time, the corresponding URL will be blocked.
if you need to mask all devices in the same LAN, the router setting is the best choice, and one setting can cover all devices connected to the router.
1, enter the router management background
first enter the management address of the router in the browser address bar, usually 192.168.1.1 or 192.168.0.1, you can check the bottom label of the router. Enter the administrator account and password to log in to the background, if not modified, you can use the default account password, generally marked on the router label.
2, configure URL blocking rules
log in to find the URL filtering or website blocking related function modules, the names of different brands of routers may be slightly different, such as some called website filtering, some called parental control. After entering this module, add the URL that needs to be blocked, which can be added individually or imported in batches, set the effective time and the scope of applicable devices, and save the settings after confirming that the rules are correct. At this time, all devices in the LAN cannot access the blocked URL.
when the system and router URL blocking can not meet the needs, such as the need for more refined blocking rules or statistical access records, third-party software can play a role.
1, choose the right URL blocking software
there are many specialized URL blocking software on the market, such as Net Nanny, Cold Turkey, etc., and some security software also comes with URL blocking function. Choose according to your own needs, such as parents can choose software with content classification blocking function, enterprises can choose software that supports batch management and statistics to ensure that the software function matches your own URL blocking needs.
2, setting refined URL blocking rules
after installing the software, enter the setting interface to add the URL that needs to be shielded. Some software supports shielding by URL keywords and content categories, and can also set the time period of shielding, such as shielding entertainment URLs only during working hours. At the same time, some software can also record the URL access of the device, which is convenient for users to view the shielding effect and adjust the rules, and further strengthen the pertinence and effectiveness of URL shielding.
in the process of URL blocking, if some details are ignored, it may lead to blocking failure or affect normal network use, and special attention is required.
1. Confirm the accuracy of the URL format
URL masking, to ensure that the input URL format is accurate, such as whether it contains www prefix, some URLs with www and without www are two different addresses, if only one of them is blocked, the user can still access through the other address. Therefore, when adding shielded URLs, it is best to add two formats with and without prefix to avoid blocking loopholes.
2, regularly update the URL blocking rules
the network environment is constantly changing, new bad URLs or interfering URLs will continue to appear, so it is necessary to regularly update the URL blocking rules. For example, parents should pay attention to the newly emerging bad content platforms and add the corresponding URLs to the blocking list in a timely manner; enterprises should also adjust the URL blocking range according to business needs to ensure that the URL blocking effect always meets expectations.
To sum up, there are various ways to implement URL blocking. Users can choose system tools, router settings or third-party software to complete the operation according to their own scenarios. During the operation, pay attention to the accuracy of URL format and regular updates of rules to ensure the stability of URL blocking. Whether it is an individual, a family or a business, as long as you master the appropriate methods and precautions, you can easily realize URL blocking and create a healthier and more efficient network usage environment.