How to block a website without additional programs

Table of contents:

How to block a website without additional programs
How to block a website without additional programs
Anonim

Is there an annoying porn site that constantly bothers you? No problem, you can tell your computer (Windows and Mac) to ignore any requests from this site, instead showing any other site! Read the article to find out how to do this.

Steps

Method 1 of 3: For Windows

Block a Specific Website Without Software Step 1
Block a Specific Website Without Software Step 1

Step 1. Find the HOSTS file on your computer

For NT-based Windows, the file path is C: \ winnt \ system32 \ drivers \ etc. For other Windows OS - C: \ windows \ system32 \ drivers \ etc.

Block a Specific Website Without Software Step 2
Block a Specific Website Without Software Step 2

Step 2. If the file is not found, create it

File >> New >> Text File (Text Document). Name it "HOSTS" without the.txt (see "Tips" for problems).

Block a Specific Website Without Software Step 3
Block a Specific Website Without Software Step 3

Step 3. Open the file with Notepad

Right-click on the file and select Open >> Notepad and click OK.

Block a Specific Website Without Software Step 4
Block a Specific Website Without Software Step 4

Step 4. Add new injections to the block at the bottom of the file

For example, if you want to block evil-site.com, add to the hosts file (after 127.0.0.1 press TAB, not Spaces):

Block a Specific Website Without Software Step 5
Block a Specific Website Without Software Step 5

Step 5. Save the file

Method 2 of 3: For Mac

Block a Specific Website Without Software Step 6
Block a Specific Website Without Software Step 6

Step 1. Open "Finder"

Block a Specific Website Without Software Step 7
Block a Specific Website Without Software Step 7

Step 2. Click on the menu "Go", "Go to folder

."

Block a Specific Website Without Software Step 8
Block a Specific Website Without Software Step 8

Step 3. Enter "/ private" in the dialog box that appears and click "Go"

Block a Specific Website Without Software Step 9
Block a Specific Website Without Software Step 9

Step 4. Open the etc folder

Block a Specific Website Without Software Step 10
Block a Specific Website Without Software Step 10

Step 5. Find the "Hosts" file and open it with TextEdit

Block a Specific Website Without Software Step 11
Block a Specific Website Without Software Step 11

Step 6. Add the following inputs to the file:

Block a Specific Website Without Software Step 12
Block a Specific Website Without Software Step 12

Step 7. Note that you need to add both "example_site.com" and "www.example_site.com" to the list; if you have not done so, the unit may not work properly

Method 3 of 3: Block the site group using a web filter

Block a Specific Website Without Software Step 13
Block a Specific Website Without Software Step 13

Step 1. Download a web filter such as K9 Web Protection

Block a Specific Website Without Software Step 14
Block a Specific Website Without Software Step 14

Step 2. Open the downloaded file and follow the directions to install the web filter

Block a Specific Website Without Software Step 15
Block a Specific Website Without Software Step 15

Step 3. The installed software will automatically protect your computer from any content "for adults", sites of a sexual nature, sites that threaten your computer

You can independently add the address of the site that you want to block by clicking on the button "Keywords URL".

Advice

  • To see the.txt extension, do the following: My computer> Tools> Folder options …> View> Uncheck the box "Hide extensions for registered file types".
  • Make sure the hosts file does not have a Read Only option … Right-click on the file and uncheck the "Read only" option !!!
  • If you cannot remove the.txt extension, open a DOS window (Start-> Run-> cmd) and enter the following:
cd C: \ windows \ system32 \ drivers \ etc [press Enter / Return] rename hosts.txt hosts [press Enter / Return]

If your OS is Windows NT / 2000 / XP Pro, replace "windows" with "winnt" in the cd command. Close the DOS window.

  • Windows Vista users will find they cannot create a HOSTS file.

    • Launch Notepad as Administrator, then find the hosts file and edit.

      (This can happen if you are logged in as Administrator.).

Popular by topic