Welcome to MacTalk Australia

the largest Australian community for Apple discussions and topics

Join the discussions, Register Now!
Results 1 to 7 of 7
  1. #1

    Join Date
    May 2009
    Posts
    5

    Default How to block a website on a wireless network?

    HI All

    i'm new here, and can get about a computer, but will probably be fairly amateur in comparison to some users (hence I'm here)

    I have a desktop PC at home linked to broadband with a Netgear router running from this, giving wireless internet access to 1 Macbook and 1 Macbook pro.

    Ideally:
    What I want to do is block a website from the Macbook & Desktop, but not my Macbook pro. Is this possible? I was thinking of just blocking the Macbook by removing the MAC address from my router's settings, but I think this is a bit harsh.. as the Macbook might be being used for study work too.

    Does anyone know if this is possible?

    Or.... would I have to completely block the website from all members of the network and desktop to acheive just one user not being granted access? (annoying, but if this is the case, then so be it)

    Or.... to do this would I need access to the Macbook in order to just eliminate the site from there? (again, not ideal)

    Thanks for your help!

    H

  2. #2

    Join Date
    May 2009
    Posts
    5

    Default

    Acutally, I may have made a typo. I believe the broadband goes directly into the router

    the PC is cabled from the router

    the Macs are wireless...

  3. #3

    Join Date
    Dec 2006
    Location
    Fremantle, WA (and the East Kimberley on occasions)
    Posts
    284

    Default

    I don't use that set-up, but my modem-router (Belkin) allows you to block a specific machine from specific web sites, without blocking the machine from the network or from the internet - so you should be able to do it. Dig around in the Netgear preferences/set-up screens looking for access control options.

  4. #4
    arkenstone's Avatar arkenstone is offline Pinball Wizard

    Join Date
    Nov 2006
    Location
    seaford.vic.au
    Posts
    2,044

    Default

    A fairly simple way to do it on that machine only would be to modify the hosts file.

    The 'hosts' file is a file that your computer will check when it's ever asked for another hostname, domain name etc. it checks the local hosts file first before asking your modem or your ISP or the Internet.

    So, say your son is visiting

    wereallylikeboobies.com.

    We'll need to add this into the hosts file and redirect attempts to visit this domain to somewhere else. You might like to redirect him to a school page for a bit of amusement or just loop him back to localhost (his own PC) which will appear as if the site is down/broken/nothing will happen/etc.

    You don't mention if it's a Mac or not. While I don't have a Mac in front of me right now I'm fairly certain the hosts file is in /etc.

    So the file you need to edit is

    /etc/hosts

    ON recent versions of Windows (Such as XP) the file is in C:\windows\system32\drivers\etc\


    And add a line like this

    127.0.0.1 *.wereallylikeboobies.com # Redirects wereallylikeboobies.com to localhost


    The 127.0.0.1 is the loopback IP address - it will point back to his own computer. The second part is the domain you want to redirect - the asterisk should grab everything (www.wereallylikeboobies.com, wereallylikeboobies.com, bigtitties.wereallylikeboobies.com, etc.) The bit after the # is a comment and doesn't need to be there, it's purely for human use.
    [B]| Flickr | blog | MacTalk Podcaster | Official PM-Bid Hater #1

  5. #5

    Join Date
    Feb 2007
    Location
    Toongabbie, NSW
    Posts
    3,074

    Default

    Quote Originally Posted by arkenstone View Post
    127.0.0.1 *.wereallylikeboobies.com # Redirects wereallylikeboobies.com to localhost


    The 127.0.0.1 is the loopback IP address - it will point back to his own computer. The second part is the domain you want to redirect - the asterisk should grab everything (www.wereallylikeboobies.com, wereallylikeboobies.com, bigtitties.wereallylikeboobies.com, etc.) The bit after the # is a comment and doesn't need to be there, it's purely for human use.
    Unfortunately, wildcards don't work in /etc/hosts (like they do in DNS zone files). The line in the example above will literally match "*.wereallylikeboobies.com" and nothing else.

    However, I reckon it is good practice to run a caching DNS server on a home network (for a number of reasons), and that would be a good place to blackhole domains.

    Cheers
    Steffen.
    It's Unix, Jim, but not as we know it...

  6. #6

    Join Date
    Jun 2008
    Location
    North Shore Sydney
    Posts
    54

    Default

    Don't Know if this helps,
    Im running an Optus cable modem to airport express then wireless to a MBP and Sony laptop,PC desktop and 3 x iphones plus an Xbox wirless
    am running DNS Via openDNS.com and can custom block web site via openDNS
    Problem being once blocked..... then blocked to all and I put up with having to unblock the web site I want to visit and of course block it again when finished....... at the very least while the cats away the young teenage mice can only play with what is allowed

    If there is and easier way please. please let me know

  7. #7

    Join Date
    May 2009
    Posts
    5

    Default

    Thanks for your advise everyone.

    I'll print this off and have a go at setting it up on the weekend.
    Any problems, I'll be back ;-)

    H

Tags for this Thread

Posting Permissions

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