Windows 8 and 8.1 Forums


Block specific (sub)domains without editing hosts file

  1. #1

    Block specific (sub)domains without editing hosts file


    Hi all,

    Can you please recommend an application doing similar job as adding records to the hosts file does? I'm looking for a tool capable of blocking connections for particular subdomains (not entire domains).

    I don't really want to install another firewall (as I'm already using one) and I'm not sure if a firewall is able to block subdomains - I've always thought it's meant rather for working with IP addresses.

    Your help is highly appreciated!

      My System SpecsSystem Spec

  2. #2


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    Use OpenDNS Parental controls. Otherwise you would have to use a router that allows you to set it at the router, in case someone figures out how to change the settings for the adapter DNS, to bypass the security.

    A Firewall is the first layer of protection. They are made to allow an admin to protect each computer from receiving info from possible intrusions. Also allows you to stop end users from getting to malware sites, or attempt to go to certain IP's or URL's.
      My System SpecsSystem Spec

  3. #3


    Why not use hosts?????
      My System SpecsSystem Spec

  4. #4


    @Ztruker - yes, I'm fully aware this is a simple and convenient way of disabling access to certain sites. However, it looks it's not efffective enough in my case, as even though I have set certain subdomains to 127.0.0.1, I'm still able to receive response from those sites (meaning I'm not ending up in 127.0.0.1 as expected). I've double checked the hosts file and it's set up correctly, moreover it works correctly at my home. Just the work machine seems to ingnore hosts settings...
      My System SpecsSystem Spec

  5. #5


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    What do you mean by sub-domains? Most web servers are actually Virtual Machines running on one Blade Server, or physical server.

    As for work. Most likely if they are using a domain or the router is set to use a different set of rules through a Proxy. Your web browser will never even see the Host file in the picture.
      My System SpecsSystem Spec

  6. #6


    Quote Originally Posted by mikolajek View Post
    @Ztruker - yes, I'm fully aware this is a simple and convenient way of disabling access to certain sites. However, it looks it's not efffective enough in my case, as even though I have set certain subdomains to 127.0.0.1, I'm still able to receive response from those sites (meaning I'm not ending up in 127.0.0.1 as expected). I've double checked the hosts file and it's set up correctly, moreover it works correctly at my home. Just the work machine seems to ingnore hosts settings...
    If you are still getting a response from a sub domain after setting it to 127.0.0.1 in the host then you have done something wrong, some browsers cache dns and do need a reboot - did you reboot after setup?
      My System SpecsSystem Spec

  7. #7


    @bore23 - I'm looking to disable only a particular subdomain, like: video.site.com, while still being able to access www.site.com or audio.site.com

    @z3r010 - sure I did reboot
      My System SpecsSystem Spec

  8. #8


    You're going to need something a little mire specialized.

    DansGuardian running on a server that sits between your network and the internet would work very well if set up right.

    That might be overkill though.

    As far as ignoring the hosts file goes. Does the work computer use ipv6?
      My System SpecsSystem Spec

  9. #9


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    With my Cisco RV320 Gateway, I can trust or Forbid certain domain access. That includes sub-domains. You would still access the Primary domain, as long as you have your rules set up properly.
      My System SpecsSystem Spec

  10. #10


    @hydranix - no, I don't think our network uses IPv6, as I can disable it in the settings and everything keeps working.
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Block specific (sub)domains without editing hosts file
Related Threads
Solved try to save the hosts file in General Support
Thanks for sharing these instructions, which I followed to the letter and added the "Take ownership". I use the new menu on the Windows/System32/drivers/etc folder. Notwithstanding, as I try to save the hosts file on Windows/System32/drivers/etc it responds "Denied access" and does not allow to...
Alright, so I've just encountered this problem today and it's inexplicably frustrating. I'm running Windows 8.1 x64 with only Bitdefender Total Security on. A day or so back I could edit and modify my hosts file perfectly. Today, it's just gone. There are 2 hosts.backup file in the...
I am getting error "Save failed - Please check if this file is opened in another program" when trying to edit the hosts file in Notepad++. This has only started happening after a fresh installation of Windows 8 on a new computer. My previous computer with Windows 8.1 was able to do it correctly...
Since I installed 8.1, my machine is running hot, 45c, but when I shut down one of the many Service Host:Local Service(s), it drops back down to 20c, where it was always with 8. I can manually shut it down each time.... but I's like to block it from starting in the first place. Shutting down...
Hi guys1 I'm about to create a .reg file that will set path in registry to my own icon for specific file extensions. E.g. I want my own icon as a default icon for .ini extension. And not only for one extension but for more of them, in a single .reg file. As always I don't want to mess it up,so I'm...
Changing Hosts File in General Support
I am trying to edit my host file, but the system is telling me that I need to be an administrator, when I am the administrator. I made an attachment in word with screen shot for you to see. Is there a solution for this problem? 25078
Ok so i need the IP Adress the Advertisements are hooking up to so i can block it in the "hosts" file. What IP are all Advertisements from Windows hooling up to so when i open an app i dont get Advertising about this app or that app or so. So my idea is to block it in the "hosts" file in the...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook