How to block sites from Google search results?

Discussion in 'Custom Filters' started by agfdfdfgadf2wdf2fe, Jan 4, 2019.

  1. agfdfdfgadf2wdf2fe

    agfdfdfgadf2wdf2fe New Member

    Joined:
    Jan 4, 2019
    Messages:
    1
    Google used to provide this feature but it was removed some time ago. How can I use filter rule to remove local search results from a certain website? I can do it with search parameters but it kinda pollutes the search box. A filter approach would be a lot cleaner.

    something similar to https://chrome.google.com/webstore/detail/personal-blocklist-by-goo/ but works
     
  2. Alex302

    Alex302 Filters Developer Staff Member Administrator

    Joined:
    Jul 20, 2012
    Messages:
    24,655
    you can use something like that
    Code:
    google.com##div[role="main"] > div#search  div[data-async-context] > div > div > div.srg > div:contains(/hotline.ua|allo.ua|foxtrot.com.ua/)
    
    black list is here(separator is |)
    Code:
    :contains(/hotline.ua|allo.ua|foxtrot.com.ua/)