Results 1 to 7 of 7

Thread: How to block entirely an access to a web site?

  1. #1
    Join Date
    Dec 2011
    Beans
    17

    How to block entirely an access to a web site?

    Hi.

    I'd like to know how to block entirely a web site....

    Her's what I've done:

    From terminal.....

    sudo gedit /etc/hosts

    after I've write

    0.0.0.0 www.mysite.com

    When I enter into my site I can't see it..... but into the chronology I've the entire site......

    For example I've www.mysite.com/page1

    I've tried to change the hosts into

    0.0.0.0 www.mysite.com*

    but after have put the * I can see again the main page.....what can I do for BLOCK enirely the access to the web site?

    Tnx so much for the answers!!!!!!!!!!!!!!!

    Best Regards.

  2. #2
    Join Date
    Jan 2007
    Beans
    3,202

    Re: How to block entirely an access to a web site?

    Try adding to /etc/hosts:

    127.0.0.1 www.mysite.com

    Save it and restart networking, or reboot the computer.
    Intel Core i7-950 / Asus P6X58D-E / Nvidia GTX480 / siduction 64-bit on OCZ Revodrive SSD / KDE4.10.2/ Kubuntu 13.04

  3. #3
    Join Date
    Dec 2011
    Beans
    17

    Re: How to block entirely an access to a web site?

    Hi.

    Tnx for the answer but I can still see the other pages of the site.....

  4. #4
    Join Date
    Jan 2007
    Beans
    3,202

    Re: How to block entirely an access to a web site?

    Are you sure your browser has not cached some pages of the site? Try purging the cache, then see if you can find the page.
    Intel Core i7-950 / Asus P6X58D-E / Nvidia GTX480 / siduction 64-bit on OCZ Revodrive SSD / KDE4.10.2/ Kubuntu 13.04

  5. #5
    Join Date
    Oct 2011
    Beans
    822

    Re: How to block entirely an access to a web site?

    Install moblock and block whatever web site you want. It uses a GUI instead.

    You can find the PPA to install it about 1/2 the way down the checklist:

    https://debianhelp.wordpress.com/201...neiric-ocelot/

    Quote Originally Posted by Bruno81 View Post
    Hi.

    I'd like to know how to block entirely a web site....

    Her's what I've done:

    From terminal.....

    sudo gedit /etc/hosts

    after I've write

    0.0.0.0 www.mysite.com

    When I enter into my site I can't see it..... but into the chronology I've the entire site......

    For example I've www.mysite.com/page1

    I've tried to change the hosts into

    0.0.0.0 www.mysite.com*

    but after have put the * I can see again the main page.....what can I do for BLOCK enirely the access to the web site?

    Tnx so much for the answers!!!!!!!!!!!!!!!

    Best Regards.

  6. #6
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,909
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to block entirely an access to a web site?

    also check /etc/nsswitch.conf and make sure that "files" is before the "dns" server address!
    you have also the ption to blacklist the address from your router's config page (if it belongs to you!).

    ---------------------
    If this website is accessing a service to your computer. like ftp, (since you did not specify if you are blocking the site as a "server" or as a "client") add an entry to /etc/hosts.deny (if you are usin inetd super server)
    ALL:.example.com
    or if you are using xinetd super server edit the file: /etc/xinetd.conf
    Last edited by fdrake; December 11th, 2011 at 11:48 PM.

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  7. #7
    Join Date
    Aug 2011
    Beans
    108

    Re: How to block entirely an access to a web site?

    I don't know if you have access to the network router but you could do it at that level as well.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •