How to Restrict Google Custom Search to Your Domain

How to Restrict Google Custom Search to Your Domain

Google Custom Search (GCS) has an amazing feature that allows you to restrict search results to your domain. If you want search results limited to your website only, here is a simple guide you can follow.


Step-by-Step Guide

  1. Visit Google Custom Search Console.
  2. Login with your Google account.

2. Select Your Search Engine

  1. Select your custom search engine in the dashboard.
  2. Click on Control Panel to edit.
How to Restrict Google Custom Search to Your Domain

3. Restrict to Your Domain

  1. Go to the Setup tab.
  2. Add your domain URL in the “Sites to Search” section:
    • Example: https://yourdomain.com
  3. If you want to restrict a specific subdomain or directory, type the URL like this:
    • For a specific subdomain: https://blog.yourdomain.com
    • For a directory: https://yourdomain.com/blog/
  4. Save changes.
adding Sites to Search in the settings

4. Exclude External Results

If external websites appear in search results:

  1. Scroll down to Sites Exclusion.
  2. Add here the URLs or domains that you don’t want in the results.

Example:

https://example.com  
Sites Exclusion

  1. Save your settings and test your Custom Search on your website.
  2. Ensure is now only showing results for your domain.

Conclusion

Restricting Google Custom Search to your domain is a simple process that can provide a better and more relevant experience to your site visitors. By simply adjusting a few settings, you can remove irrelevant search results from outside your domain.

Leave a Reply

Your email address will not be published. Required fields are marked *