2

This question already has an answer here:

How to block all website on the basis of top level domain name in ubuntu 14 . For example I want to block all website on my system ending with ".info" or ".org " or " ".cn " .

marked as duplicate by Parto, Pilot6, David Foerster, kos, Eric Carvalho Feb 11 '16 at 12:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • wild cards won't work in /etc/hosts. Kindly refer to the linked question. – Parto Feb 10 '16 at 14:57

Browse other questions tagged or ask your own question.