Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta

Is there anyway to block a website on my laptop? watch

Announcements
    • Thread Starter
    Offline

    18
    ReputationRep:
    Sorry, might be wrong forum, and also I'm a completely backwards when it comes to technology

    but basically I want to block a website on my laptop so that I don't go onto said website

    is there any way to do this?
    Offline

    0
    ReputationRep:
    (Original post by lekky)
    is there any way to do this?
    Your firewall maybe able to block sites. Failing that
    if you are running windows you can edit:

    C:\WINDOWS\system32\drivers\etc\ hosts

    (you might have to create the file if it doesn't exist)

    Add a line like:

    127.0.0.1 www.thestudentroom.co.uk

    then reboot.
    • Thread Starter
    Offline

    18
    ReputationRep:
    (Original post by juanmodesto)
    Your firewall maybe able to block sites. Failing that
    if you are running windows you can edit:

    C:\WINDOWS\system32\drivers\etc\ hosts

    (you might have to create the file if it doesn't exist)

    Add a line like:

    127.0.0.1 www.thestudentroom.co.uk

    then reboot.
    thank youuu... but that is too complicated for me, sorry
    Offline

    14
    ReputationRep:
    https://addons.mozilla.org/en-US/firefox/addon/4476
    • TSR Group Staff
    Offline

    19
    ReputationRep:
    TSR Group Staff
    It's too complicated for you to open and edit a file in Notepad? :lolwut:

    I'm afraid there may be no helping you.
    Offline

    0
    ReputationRep:
    (Original post by lekky)
    thank youuu... but that is too complicated for me, sorry
    er.. all you need to do is run notepad. Open the file and add a line and save it. Not exactly rocket science!
    Offline

    0
    ReputationRep:
    In internet explorer, go to tools, then options, then privacy (or it may be security :/ ) and you will see a blank space for blocked websites. Type the address in the bar above that and click "block". Clicking "Allow" will unblock it when you want.

    I tried this with facebook a few weeks ago and it failed miserably, because I knew how to unblock it again.... goodbye decent mock exam grades....
    Offline

    14
    ReputationRep:
    Can't you just use willpower?
    • Thread Starter
    Offline

    18
    ReputationRep:
    (Original post by Dez)
    It's too complicated for you to open and edit a file in Notepad? :lolwut:

    I'm afraid there may be no helping you.
    I did prewarn you that I was completely backwards. I don't actually know what notepad is :o: :o: :o: :o:

    EDIT: I FOUND NOTEPAD! :woo: so now I just put that thing in it?
    • Thread Starter
    Offline

    18
    ReputationRep:
    (Original post by Christian_j)
    Can't you just use willpower?
    what's that? :p:

    no, there are quite serious reasons why I need to not go on said site anymore but I might need a reminder from time to time :o:
    • Thread Starter
    Offline

    18
    ReputationRep:
    (Original post by juanmodesto)
    er.. all you need to do is run notepad. Open the file and add a line and save it. Not exactly rocket science!
    ok ok, so I found notepad! its just a big white box right?
    So then I copy this in 127.0.0.1 *name of site*

    but then where do I save it?

    Or have I got this all wrong? :o:
    Offline

    0
    ReputationRep:
    (Original post by lekky)
    I did prewarn you that I was completely backwards. I don't actually know what notepad is :o: :o: :o: :o:
    Hit the windows button or otherwise get to the "start" menu. Choose run.
    Type "notepad". That brings up a little text editor. Then do
    File->open

    And open C:\WINDOWS\system32\drivers\etc\ hosts

    type in a new line:
    127.0.0.1 www.thestudentroom.co.uk

    then do file->save then file->exit and reboot.
    • Thread Starter
    Offline

    18
    ReputationRep:
    (Original post by juanmodesto)
    Hit the windows button or otherwise get to the "start" menu. Choose run.
    Type "notepad". That brings up a little text editor. Then do
    File->open

    And open C:\WINDOWS\system32\drivers\etc\ hosts

    type in a new line:
    127.0.0.1 www.thestudentroom.co.uk

    then do file->save then file->exit and reboot.
    I am resolving to rep you once a month for the next 6 months :o:


    ok I found it. Right you know that Ip address 127.0.0.1 is that for TSR? cos it's not TSR I'm wanting to block, do I need to use one from that site?

    so when I typed that C:\WINDOWS\system32\drivers\etc\ hosts
    into the search box it brought up something that was already there

    # Copyright (c) 1993-2006 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    i put in the IP address you typed and then the website address www.WEBSITENAME.co.uk
    tried to save but it says

    cannot create the C:\Windows\System32\drivers\etc\ hosts file
    make sure that the path and file name are correct
    Offline

    0
    ReputationRep:
    (Original post by lekky)
    I am resolving to rep you once a month for the next 6 months :o:


    ok I found it. Right you know that Ip address 127.0.0.1 is that for TSR? cos it's not TSR I'm wanting to block, do I need to use one from that site?
    No. The line:

    127.0.0.1 xxxx

    just sets the address of a site "xxx" to 127.0.0.1 (which is a special address "localhost" that doesn't point to anywhere on the internet), so basically when you browse to "xxx" it will just say
    "can't connect" or some such error. You need to reboot because your
    PC might have stored the real address of "xxx" and so won't look in the hosts file.
    Offline

    14
    ReputationRep:
    Erm.

    Only 140% simpler. :p:
    Offline

    0
    ReputationRep:
    (Original post by lekky)
    I am resolving to rep you once a month for the next 6 months :o:


    ok I found it. Right you know that Ip address 127.0.0.1 is that for TSR? cos it's not TSR I'm wanting to block, do I need to use one from that site?

    so when I typed that C:\WINDOWS\system32\drivers\etc\ hosts
    into the search box it brought up something that was already there

    # Copyright (c) 1993-2006 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    i put in the IP address you typed and then the website address www.WEBSITENAME.co.uk
    tried to save but it says

    cannot create the C:\Windows\System32\drivers\etc\ hosts file
    make sure that the path and file name are correct
    That could be a permission problem.
    Try this:
    start->run then type "cmd"

    This should bring up a black "dos shell". Do

    cd C:\Windows\System32\drivers\etc
    attrib -r hosts

    (this stops the file being "read only" so now you can change it)

    Then try and save the file again.

    You *might* need to log-in to the PC as an "administrator". Your usual account might not be allowed to touch files in c:\windows.
    Offline

    0
    ReputationRep:
    (Original post by Cicerao)
    Erm.
    Only 140% simpler. :p:
    Except most noobs will be using IE.
    Offline

    14
    ReputationRep:
    (Original post by juanmodesto)
    Except most noobs will be using IE.
    É, true. :p:
    • Thread Starter
    Offline

    18
    ReputationRep:
    (Original post by juanmodesto)
    That could be a permission problem.
    Try this:
    start->run then type "cmd"

    This should bring up a black "dos shell". Do

    cd C:\Windows\System32\drivers\etc
    attrib -r hosts

    (this stops the file being "read only" so now you can change it)

    Then try and save the file again.

    You *might* need to log-in to the PC as an "administrator". Your usual account might not be allowed to touch files in c:\windows.
    I am the administrator.. it's my laptop lol

    um that didn't work
    • Thread Starter
    Offline

    18
    ReputationRep:
    (Original post by Cicerao)
    É, true. :p:
    Yeah I don't have firefox
 
 
 
Reply
Submit reply
Turn on thread page Beta
TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: January 31, 2010
Poll
Do you agree with the proposed ban on plastic straws and cotton buds?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.