Block certain domains from appearing in Safari search result

Discussion in 'macOS' started by sweejin, Feb 5, 2016.

  1. sweejin macrumors member

    Joined:
    Aug 21, 2011
    Location:
    London, UK
    #1
    Hello,

    I use Safari as my main browser. I would like to prevent certain domains from appearing in the search result. How do I go about to do this?

    Thanks!
     
  2. JohnDS macrumors 65816

    Joined:
    Oct 25, 2015
    #2
    I don't think you can. The search results are determined by your default search engine, usually Google.

    What you can do is prevent those links from loading when you click on them by editing your hosts file, but you can't prevent the actual links from appearing in the search.
     
  3. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #3
    Are you talking about searches from the address bar?

    What you can do is install the Safari extension CustomSearch. Then in the settings add the string below for Google search then select that as the default search engine in the extension. In my example, all the sites listed after #TEXT# will be excluded from the search results.

    http://www.google.com/search?q=#TEXT#+-site:ehow.com+-site:answers.yahoo.com+-site:about.com

    Once you get the extension installed, let me know if you cant figure out how to set this up and I can help. Just tell me what search engine you want to use and what sites to exclude from the results.
     
  4. sweejin thread starter macrumors member

    Joined:
    Aug 21, 2011
    Location:
    London, UK
    #4
    Thanks for the replies.

    What I meant is what JohnDS referred to. I don't want search results appearing on the main body page.

    For example, if I'm searching for say "top news of the day", I don't want certain popular news portals to appear on the search result from Google.

    I guess there isn't a way to do that, but thanks. :)
     
  5. Weaselboy, Feb 8, 2016
    Last edited: Feb 10, 2016

    Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #5
    What I described will do exactly what you want. If you list the sites you do not want in the results like I explained, they will not be included in the Google page that shows the search results.

    Look at my two examples here using USA Today as a test if that was one you did not want in the results. You can customize this however you want using that extension to apply the customization to the Safari search box.

    Screen Shot 2016-02-08 at 9.51.24 AM.png Screen Shot 2016-02-08 at 9.52.08 AM.png
     
  6. sweejin thread starter macrumors member

    Joined:
    Aug 21, 2011
    Location:
    London, UK
    #6
    Oh okay, thanks! I'll have to try it out now :)
     

Share This Page