TechSpot

Blocking Specific Websites

  1. Hello, I need some help with blocking some specific websites on my home network. I have found inside my router where I can block these websites, but it redirects to a page claiming the website has been blocked. I need it to be redirected to an error page so it seems like it is not being blocked and just connection issues with the websites.
     
  2. jobeard

    jobeard TS Ambassador Posts: 9,330   +622

    Mine does that too, but it is not customizable.

    The alternative is a modified hosts file on the desired pc, but that means you need access and admin password for each system

    The file is in this location
    c:\windows\system32\drivers\etc
    and to trap a specific DOMAIN (not just one page, but all pages) add this to the file
    127.0.0.1 blocked_domain_name.com
    127.0.0.1 www.blocked_domain_name.com

    then get a command prompt and issue these
    ipconfig /flushdns
    net stop "dns client"
    net start "dns client"

    attempts at accessing www.blocked_domain_name.com will get a status
    Unable to connect
     
  3. atomicchewbacca

    atomicchewbacca TS Rookie Topic Starter

    Thanks , I will try this when I get the chance.
     

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...