How to Permanently Lock SafeSearch on Google in Chrome

Published by Nyau Wai Hoe - Updated on

SafeSearch is a valuable tool for filtering out explicit content from Google’s search results, providing a safer online environment. While enabling SafeSearch is generally easy, ensuring that it remains permanently activated can be more challenging. This becomes especially crucial if you have children using the same device, as SafeSearch can help to shield them from inappropriate material. Additionally, maintaining a SafeSearch lock can serve as a form of personal discipline, helping you focus on more productive tasks while using the internet. In this article, we will guide you through various methods to lock SafeSearch settings permanently, to create a more secure browsing experience for yourself and your family.

Also see: How to Block Adult Websites in Windows 11

How to Permanently Lock SafeSearch on Google in Chrome

Modifying the “hosts” file to lock SafeSearch permanently

Locking SafeSearch across various browsers on a Windows computer can be done effectively by modifying the hosts file. This method redirects Google’s DNS queries, thereby forcing SafeSearch to stay enabled. This technique works across multiple browsers, including Chrome, Firefox, and Microsoft Edge.


  • Administrative access to the computer
  • A text editor (Notepad, for example)
  • Basic understanding of file directories in Windows

Step-by-step guide to modify the “hosts” file

  1. Ping for SafeSearch IP address: Open Command Prompt and type ping Note down the IP address that appears. This IP address is used by Google to enforce SafeSearch and may vary depending on your region.

    IP Address of

  2. Open Notepad as an administrator: Before opening the hosts file, search for Notepad in the Start menu, right-click on it, and select “Run as administrator.”Run Notepad as administrator Windows 11
  3. Open the hosts file in Notepad: In Notepad, go to File > Open, navigate to C:\Windows\System32\drivers\etc, and then select the hosts file. If you can’t see the hosts file in the “Open” window, click on the dropdown next to “File name” and select “All files.“”Open hosts file Windows 11
  4. Edit the hosts file: At the end of the document, add the following lines using the IP address you obtained from the ping command:
    [SafeSearch IP address]

    For example, if the IP address is, you would add:

    This will force Windows to redirect any requests to to, which is the IP address for, forcing Google search to enable SafeSearch.Permanently Lock SafeSearch on Google

  5. Add additional Google domains: If you or other users may use Google from different country or region domains, copy the lines you just added, replacing with the relevant domain, like or

    Force Safe Search Permanently on Google

  6. Save the changes: Save the file and exit Notepad. If you encounter issues while saving, ensure you have administrative privileges and try again.
  7. Flush DNS cache: Open Command Prompt as an administrator and type ipconfig /flushdns, then press Enter. This action will refresh the DNS cache, ensuring that your changes take effect.IPConfig Flush DNS cache Windows 11
  8. Confirm SafeSearch is enabled: To ensure that SafeSearch filtering is indeed activated, navigate to Verify that SafeSearch is set to “on” by default and that you’re unable to turn it off.Lock Google SafeSearch Permanently so it can't be turned off
  9. Test the changes: Open any browser and check if SafeSearch is locked. It should be enabled by default, and attempts to disable it should not succeed.

Note: Exercise caution while editing the hosts file, as incorrect modifications can result in network issues.

Learn more: How to Block Websites on Chrome Without Extension

Using the Web Filter for Chrome extension

If your primary browser is Google Chrome and you’re looking for a comprehensive solution, the “Web Filter for Chrome” extension serves as an all-in-one parental control and adult content filtering tool. Not only does it force-enable SafeSearch on Google across all types of searches—including images and videos—it also locks SafeSearch settings for other major search engines like Bing and Yahoo. Additionally, it blocks direct access to adult sites via URL, adding an extra layer of security.

Step-by-step guide to set up Web Filter for Chrome

  1. Install the extension: Open Google Chrome and navigate to the Chrome Web Store. Search for “Web Filter for Chrome” and click “Add to Chrome” to initiate the installation process.Adult Web Filter for Google Chrome
  2. Restart Chrome: Once the extension is installed, restart Chrome to activate the features. There’s no need to configure any settings; the extension works automatically upon restarting the browser.
  3. Test the features: To make sure everything is working as expected, perform some test searches on Google, Bing, and Yahoo to verify that SafeSearch is enforced. You can also try accessing adult sites directly via URL to confirm they are effectively blocked.Turn on SafeSearch Permanently Google Chrome

Note: Extensions can be disabled or removed, so this method might not be as foolproof as modifying the hosts file. For additional security, you may set up admin restrictions on the Chrome browser to prevent unauthorized changes to extensions.

Pro tip: How to Block a Website Such As YouTube in Windows 11

Using parental control software for a comprehensive solution

If you’re looking for a more comprehensive way to enforce SafeSearch across multiple browsers and devices, using third-party parental control software can be an effective option. These software suites often provide an array of features including but not limited to enabling SafeSearch, tracking browsing history, and limiting screen time.


  • A compatible device (Windows/Mac/Android/iOS)
  • Internet connection for software installation and updates

Step-by-step guide to use a parental control software

  1. Choose a software: Research and select a parental control software that suits your needs. Popular options include Qustodio, Norton Family, and Net Nanny.Norton Family
  2. Install the software: Follow the installation instructions to download and install the software on your device.
  3. Set up an account: You’ll likely need to create an account to manage the settings and view reports.
  4. Enable SafeSearch: Look for the SafeSearch or web filtering option within the software settings and enable it. This will often automatically enforce SafeSearch on popular search engines like Google.
  5. Configure additional settings: Most of these software suites offer additional features like app blocking, screen time management, and activity reports. Configure these as you see fit.
  6. Apply to multiple devices: If you have more than one device you wish to control, you’ll usually have the option to install the software on multiple devices and manage them from a central dashboard.

Note: Parental control software often requires a subscription, so be sure to consider this in your decision.

By employing parental control software, you can ensure a safe browsing environment not just by enabling SafeSearch but also through a host of other features that allow you greater control and peace of mind.

Concluding thoughts

We’ve explored several methods to lock SafeSearch permanently on Google, each with its own set of advantages and limitations. Modifying the hosts file is a robust method for Windows computers that works across multiple browsers, but requires administrative access and some technical know-how. The “Web Filter for Chrome” extension is easier to set up but is specific to Google Chrome. Parental control software offers a comprehensive solution but often at a subscription cost.

Your choice will depend on a variety of factors including the browsers you use, the level of control you want to have, and whether you’re willing to incur any costs. No matter the method you choose, the end goal is to create a safer browsing experience, especially for younger users or in shared computing environments.

Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link