1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Blocking website domains using hosts file

Discussion in 'Web & Email' started by pnggnp, Mar 29, 2015.

Thread Status:
Not open for further replies.
Advertisement
  1. pnggnp

    pnggnp Thread Starter

    Joined:
    Mar 29, 2015
    Messages:
    3
    Hi,
    I am trying to block all domains from tumblr using the "hosts" file, but I have not been able to do it. I have tumblr.com blocked using that file, but it does not block other tumblr domains, like for example, redwings.tumblr.com or whatever.tumblr.com or helpme.tumblr.com.

    Can I block those domains using this?

    127.0.0.1 *tumblr.com

    If that does not work or if hosts file cannot block all domains, could anyone suggest a way to block all of them? I did a quick search and skimmed the techguy forums, but I could not find any posts dealing with this. I could have missed it, so if this has already been answered, I'd be grateful if you could direct me there.

    Thank you :)
     
  2. gurutech

    gurutech

    Joined:
    Apr 23, 2004
    Messages:
    2,960
    Try *.tumblr.com
     
  3. Couriant

    Couriant Trusted Advisor

    Joined:
    Mar 26, 2002
    Messages:
    34,608
    First Name:
    James
    or just tumblr.com
     
  4. hewee

    hewee

    Joined:
    Oct 26, 2001
    Messages:
    57,793
    You need to close you Browser and open it again to see any changes.
     
  5. Triple6

    Triple6 Moderator

    Joined:
    Dec 26, 2002
    Messages:
    52,935
    First Name:
    Rob
    You may also be able to block domains in your router or in your firewall.
     
  6. Cookiegal

    Cookiegal Administrator Malware Specialist Coordinator

    Joined:
    Aug 27, 2003
    Messages:
    115,196
    The hosts file does not support wildcards, which is the one with the asterisk in front "*" to cover everything from a specific domain. You have to enter each one that you want to block separately so it's best to look for alternative ways to block them because a lot of entries in the hosts file will slow the computer down.
     
  7. pnggnp

    pnggnp Thread Starter

    Joined:
    Mar 29, 2015
    Messages:
    3
    I see. Thank you, Cookiegal. I'll try to find other ways. And thanks for letting me know that a large hosts file can slow the comp down. Did not know that.

    Thanks again
     
  8. pnggnp

    pnggnp Thread Starter

    Joined:
    Mar 29, 2015
    Messages:
    3
    Thanks everyone for the replies. Appreciate you taking time to help.
     
  9. Cookiegal

    Cookiegal Administrator Malware Specialist Coordinator

    Joined:
    Aug 27, 2003
    Messages:
    115,196
    You're welcome. :)
     
  10. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1145667

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice