[ASK] Block Certain Website Using Tomato??

Discussion in 'Tomato Firmware' started by davipiero, Jun 5, 2009.

  1. davipiero

    davipiero Addicted to LI Member

    Could I do that?

    I need to block certain website to be accessed. Can I do it with Tomato?
    Maybe with word filtering or web addrress filtering?

    Thanks in advance.
  2. Dashiell

    Dashiell Network Guru Member

    In advanced DHCP/DNS, place this line in dnsmasq custom config:


    It will force your dns to see the site name you want to block as having an IP of, effectively preventing anyone from getting to it on that lan.


    Sign up with OpenDNS and put the site in your block list.
  3. davipiero

    davipiero Addicted to LI Member

    What should I change into? Is it the IP of the website I want to block or IP of the client in my LAN?

    Actually, I only need to block website for certain client not for all client.

  4. The Doctor

    The Doctor LI Guru Member

    You don't change into anything. You are telling the router to return an address of for whatever domain name you put in that line whenever a DNS lookup is done, which causes the browser to attempt to load a non existent page. This effectively blocks that page from loading, although if you already know it's IP and use that instead of it's name, it will still load.

    You can also change to the IP address of a page you would like to load as a substitute, I think.

  5. davipiero

    davipiero Addicted to LI Member

    Thank you. But I think It will be applied into all client connected into the router. Is there any way if I only want to restrict certain client?
  6. davipiero

    davipiero Addicted to LI Member

    I've tried.. Wow, it's awesome..
    It will be more awesome if I can redirect the client into the web page saved in my computer (for telling a message), Can it be done?
  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