How to Block a Website on All Web Browsers
On Windows
Open the Start menu. Click the Windows icon located in the lower left corner of the screen or press the key ⊞ Win.
On Windows 8, you must move the mouse pointer to the upper right corner of the screen and click the magnifying glass icon.
Tap NotepadStart. The Notepad application will appear at the top of the Start menu window.
Right-click Notepad and select Run as administrator . This option will open Notepad as administrator. If you don't open Notepad in administrator mode, you won't be able to edit the "hosts" file.
On laptops with touchpads that replace traditional mice, use two fingers to touch the touchpad instead of right-clicking.
Click Yes when asked to confirm your decision and open Notepad.
Click File and select Open .
Double-click the drive (C: ) then go to Windows > System32 > drivers > etc. Double-click each folder until you reach the "etc" folder.
Click the "Text Documents" drop-down menu and select All Files . You'll see a variety of file types appear in the window.
Double-click the "hosts" file. Notepad will open the "hosts" file and you can then view and edit the file content.
Scroll to the bottom of the "hosts" file. You will see two lines of "localhost" text here.
Click below the last line of text. This line can read "::1 localhost" or "127.0.0.1 localhost" and is at the bottom of the page. You must place the mouse pointer directly below the last line of text on this page.
Be careful not to delete any existing content in the hosts file.
Type 127.0.0.1then press Tab ↹. This is the computer's own loopback address. The computer responds with an error page in the web browser when someone tries to access the blocked site.
Type in the address of the website you want to block. For example, if you want to block Google, type www.google.com.
Press ↵ Enter. This will move the mouse pointer to a new line. The code you just entered tells your computer to redirect the web page to an alternate loopback address.
You can add as many websites as you want to block, one per line, using the same number sequence (127.0.0.1).
Click File then select Save . So all browsers on your computer will not be able to access the website you added to the hosts file.
To unblock a site, simply open the hosts file in Notepad as administrator again and delete the line containing the site you added. Make sure you save your changes after removing the lines you want, otherwise the website will still be blocked.
On Mac computers
Launch Spotlight .Click the magnifying glass icon located at the top right of the screen.
Type terminalin Spotlight. Terminal will appear at the top of the results list.
Double-click the Terminal icon.
Type the following code into Terminal:
sudo nano /etc/hosts
then press⏎ Return . The command will begin to be executed. The "hosts" file will be opened with a text editor, inside a Terminal window.
Type the computer password then press ⏎ Return. This is the password you use to log into your Mac computer.
Terminal will not display characters when you enter a password.
Move the blinking mouse pointer to the bottom of the page. To do this, press the key ↓until the cursor is below the last line on the page.
Type: 127.0.0.1 . This is the computer's own loopback address. The computer will respond with an error page in the web browser when someone tries to access a blocked site.
Press Tab ↹. The mouse pointer will move to the right.
Don't press ⏎ Returnyet.
Enter the address of the website you want to block. For example, if you want to block Google, type www.google.com.
Press ⏎ Return. The computer will recognize and redirect the website to an alternate loopback address.
You can add as many websites as you want to block, one per line, using the same number sequence (127.0.0.1).
Press Control+X . This command is used to exit the hosts file in the text editor. You will be asked if you want to save the changes.
Click Yto save the changes. The computer will ask you what file name you want to save. We need to overwrite the original hosts file, so don't change the file name.
Press ⏎ Return. Changes will be saved to the hosts file. You will also exit the text editor and return to the Terminal window. So all browsers on your computer will not be able to access the website you added to the hosts file.
To unblock a page, simply open the hosts file in Notepad under admin again and delete the line containing the page you added. Make sure you save your changes after removing the lines you want, otherwise the website will still be blocked.
On iPhone and iPad
Open your iPhone's settings app. This is a gray application with a gear shape inside and is usually located on the Home screen.
Scroll down and tap General . This option is near the bottom of the iPhone screen, or at the top left of the iPad screen.
Scroll down and tap Restrictions near the middle of the General page.
Enter the passcode for your restrictions. This is the passcode you use to enable restrictions on your device.
If you haven't turned on restrictions, first tap Enable Restrictions and then enter your desired passcode twice.
Scroll down and tap Websites . This option is in the last section under the "ALLOWED CONTENT" heading.
Tap Limit Adult Content . You will see a blue check mark appear to the right of this option.
Click Add a Website , below the "NEVER ALLOW" heading. This option is last on the page.
Enter the address of the website you want to block. The address must start with "www" and end with a domain tag (such as ".com" or ".net"), it's okay to omit the "https://" part.
For example, if you want to block Facebook on your iPhone/iPad, you would type www.facebook.com
.
Click the blue Done button in the lower right corner of the virtual keyboard. The page you selected will now be inaccessible in the Safari browser.
This setting also applies on other mobile browsers such as Chrome and Firefox.
You should read it
- 5 super fast ways to stop digging virtual money on web browser
- How to Block a Website on Mac
- Block ads on Google Chrome, Firefox, IE with Adblock
- How to Block Websites on Firefox
- Simple way to block Website without software
- How to block ads when surfing the web
- Did you know how to block Facebook tracking?
- How to block websites from automatically opening on Coc Coc
May be interested
- How to block the website when using the Linksys WRT54GS routerprevious article, tipsmake.com showed you how to block website with tp link router, and this time, we will continue to learn how to block / block website access in linksys router. regarding the basic steps, it can be said that blocking website access on router lines is quite similar, only in the option of each device is arranged differently.
- Did you know how to block Facebook tracking?who is watching your online activities? you will think it is the internet service provider or the government. what about google, social networking sites, like facebook? yes, they also participated in this action. if you don't want any of your internet behaviors to be followed, this will be a solution.
- Block ads in browsers and Android appsif you feel too tired because the ad information appears to be going up and takes up a lot of space on the phone screen, you can follow the following ways to 'eliminate' them on the device. mobile using android operating system ...
- How to block pop-up windows on Chrome, Coc Coc, Edge, Firefox browsershow to block pop-up windows on chrome, coc coc, edge, firefox browsers. advertising is the main source of free websites on the internet. however, some sites are for personal gain, so they include ads that contain malicious code or ads that lead to phishing websites.
- 6 steps to block, block website with TP-Link routertp-link is currently one of the largest manufacturers and suppliers of the most popular wifi transceivers.
- How to block pop-up ads on Android devicesthe annoying ad pop-ups can jump out at any time, maybe when you're using a web browser or when you're using ads with apps. this is annoying, but you always have a way to stop them.
- How to Block Websites on Macin this article, tipsmake will show you how to block a website on your mac. although there is no built-in way on mac to block access to certain websites, you can adjust the host file, or the file that stores the server's ip information and the domains it points to, to block certain sites or download the selfcontrol app to block them for a predetermined time. in addition, you can also use the parental control feature on mac to block access for other accounts.
- How to Block Website Redirectstoday's tipsmake will show you how to prevent unwanted ads from opening when you click on certain links. you can block desktop website redirects in different ways through google chrome, firefox, microsoft edge, internet explorer, and safari, but you won't be able to do so with the mobile version of the web browser. note: this action improves the browser's ability to detect redirects, but not always programs can stop it in time.
- How to block websites using your CPU to dig virtual moneychances are, websites are using your computer's cpu to dig virtual money without you knowing. if you want to avoid this situation, here is a guide to block the website of virtual money digging through the browser by cpu.
- Instructions to block pop-ups in all browsersthe advertising window on the browser annoys users when we surf the web. so how to turn off pop-ups on the browser?