Jump to content

How to block a website?

MrSushi
Go to solution Solved by TheGrim123321,

1. Open Windows Explorer and navigate to C:\Windows\System32\drivers\etc. If Windows is not installed on C:, substitute the appropriate drive letter.

2. Double-click hosts, and select Notepad when Windows prompts you to choose a program. If you don't get the prompt, or if the hosts file opens in another program, open Notepad (Start, All Programs, Accessories, Notepad), and then navigate to hosts by clicking File, Open within Notepad.

 

block1-10964846.png

3. Place the cursor at the end of the last line, which will say something such as '127.0.0.1 localhost' or '::1 localhost'. Press Enter to create a new line.

4. Type 127.0.0.1, tap the spacebar once, and then type the address of a website you want to block. For example, to block all traffic from YouTube, type 127.0.0.1 www.youtube.com on this line.

5. Continue to add the websites you wish to block, each prefaced with 127.0.0.1 and a space.

 

block2-10964843.png

6. Click File, Save to commit to your changes. Dismiss any warnings from antimalware software, which may be triggered by your editing of the hosts file.

7. Close any open browser windows, and then reopen a browser to test your edits. The blocked sites should not display in any browser.

 

Thank you PC World and Google

Hello.

 

I have troubles blocking one specific web site on my computer. I just simply want to deny access to this web site. I tried to block it in hosts file according to some youtube guides but i just fail to save and replace the file. Can you please help me with saving the hosts file or is there any other way to block the web site?

 

Thank you very much for replying.

Link to comment
Share on other sites

Link to post
Share on other sites

Hello.

 

I have troubles blocking one specific web site on my computer. I just simply want to deny access to this web site. I tried to block it in hosts file according to some youtube guides but i just fail to save and replace the file. Can you please help me with saving the hosts file or is there any other way to block the web site?

 

Thank you very much for replying.

You have to open Notepad as Administrator to edit the hosts file.

LTT's unofficial Windows activation expert.
 

Link to comment
Share on other sites

Link to post
Share on other sites

Hello.

 

I have troubles blocking one specific web site on my computer. I just simply want to deny access to this web site. I tried to block it in hosts file according to some youtube guides but i just fail to save and replace the file. Can you please help me with saving the hosts file or is there any other way to block the web site?

 

Thank you very much for replying.

You can block sites in the admin control panel of your router

Echelon Mk 2.11 

Spoiler
  • Processor: Intel Core i5-6500
  • Cooler: Cryorig H7 (With a 120 mm Thermaltake Riing RGB)
  • Motherboard: MSI B150M Bazooka Plus
  • Memory: 16 (2x8) GB DDR4 Kingston HyperX Fury (Black)
  • Video Card: Sapphire NITRO R9 390 (Stock)
  • Storage:  1 TB Western Digital Blue
  • Power Supply: 520 W Seasonic M12II Evo (with custom extensions and cable combs)
  • Casing: NZXT S340 Elite (Matte Black)
  • Fans: 2x 120 mm & 3x 140 mm Thermaltake Riing RGB
  • Display: 22 " LG Flatron L227WTG-PF LCD (OCed to 76 Hz)
  • Keyboard: Logitech K120
  • Mouse: Logitech G402 Hyperion Fury
  • Mousepad: SteelSeries QcK
  • Operating System: Windows 10 Pro (64-bit)

 

Link to comment
Share on other sites

Link to post
Share on other sites

1. Open Windows Explorer and navigate to C:\Windows\System32\drivers\etc. If Windows is not installed on C:, substitute the appropriate drive letter.

2. Double-click hosts, and select Notepad when Windows prompts you to choose a program. If you don't get the prompt, or if the hosts file opens in another program, open Notepad (Start, All Programs, Accessories, Notepad), and then navigate to hosts by clicking File, Open within Notepad.

 

block1-10964846.png

3. Place the cursor at the end of the last line, which will say something such as '127.0.0.1 localhost' or '::1 localhost'. Press Enter to create a new line.

4. Type 127.0.0.1, tap the spacebar once, and then type the address of a website you want to block. For example, to block all traffic from YouTube, type 127.0.0.1 www.youtube.com on this line.

5. Continue to add the websites you wish to block, each prefaced with 127.0.0.1 and a space.

 

block2-10964843.png

6. Click File, Save to commit to your changes. Dismiss any warnings from antimalware software, which may be triggered by your editing of the hosts file.

7. Close any open browser windows, and then reopen a browser to test your edits. The blocked sites should not display in any browser.

 

Thank you PC World and Google

TheGrim123321

CPU: I3-4170Cooler: Hyper TX3Mobo:Biostar B85MGMemory: G.Skill Ripjaw 2x4GBStorage: Barracuda 500GBGPU: Zotac GTX660Case: Fractal 1100PSU: Evga 500WMonitors: FHX2153L 21.5"│V193WEJb 19"Keyboard/Mouse: CMStorm DevastorAudio: MonoPrice 8323Microphone: BlueYeti BlackoutOS: MSX(Win10) Quote me or @TheGrim123321 to get my attention.
Link to comment
Share on other sites

Link to post
Share on other sites

If you have to block many computers from accessing the webpage, you should go to your router (often 192.168.0.xxx) and block it there (menu Parental Control or so)

I successfully hacked 127.0.0.1! Now I cant turn on my computer :/

6700K - z170 Pro Gaming - Samsung 850 Pro 256GB - WD Black 1TB - WD Green 3TB - External Hard drive 3TB - Zotac GTX 970 Amp! Core Edition - Fractal Define R5 - RM650 - Razer BW Chroma - Roccat Tyon Lasermouse

Link to comment
Share on other sites

Link to post
Share on other sites

If you have to block many computers from accessing the webpage, you should go to your router (often 192.168.0.xxx) and block it there (menu Parental Control or so

 

1. Open Windows Explorer and navigate to C:\Windows\System32\drivers\etc. If Windows is not installed on C:, substitute the appropriate drive letter.

2. Double-click hosts, and select Notepad when Windows prompts you to choose a program. If you don't get the prompt, or if the hosts file opens in another program, open Notepad (Start, All Programs, Accessories, Notepad), and then navigate to hosts by clicking File, Open within Notepad.

 

block1-10964846.png

3. Place the cursor at the end of the last line, which will say something such as '127.0.0.1 localhost' or '::1 localhost'. Press Enter to create a new line.

4. Type 127.0.0.1, tap the spacebar once, and then type the address of a website you want to block. For example, to block all traffic from YouTube, type 127.0.0.1 www.youtube.com on this line.

5. Continue to add the websites you wish to block, each prefaced with 127.0.0.1 and a space.

 

block2-10964843.png

6. Click File, Save to commit to your changes. Dismiss any warnings from antimalware software, which may be triggered by your editing of the hosts file.

7. Close any open browser windows, and then reopen a browser to test your edits. The blocked sites should not display in any browser.

 

Thank you PC World and Google

I have done this but when i try to save it i doesnt allow me to do so, even when i am logged in as an administrator. It asks me to rather save it into documents.

Link to comment
Share on other sites

Link to post
Share on other sites

 

I have done this but when i try to save it i doesnt allow me to do so, even when i am logged in as an administrator. It asks me to rather save it into documents.

 

1) Press Start

2) Type notepad

3) Ctrl+Shift+Enter

4)Accept the UAC prompt

 

then follow@TheGrim123321 instructions.

LTT's unofficial Windows activation expert.
 

Link to comment
Share on other sites

Link to post
Share on other sites

1) Press Start

2) Type notepad

3) Ctrl+Shift+Enter

4)Accept the UAC prompt

 

then follow@TheGrim123321 instructions.

Big thanks! :)

Link to comment
Share on other sites

Link to post
Share on other sites

Try using Opendns. It's a bit more complicated but can also speed up your dns resolve times, in turn making your Internet feel faster.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×