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

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.

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).

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

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):

Step 5. Save the file
Method 2 of 3: For Mac

Step 1. Open "Finder"

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

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

Step 4. Open the etc folder

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

Step 6. Add the following inputs to the file:

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

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

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

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.).
-