Download Article
Learn how to prevent your students or employees from visiting proxy websites on Windows and macOS
Download Article
Proxy web sites are commonly used to access blocked web sites or to browse the Internet anonymously for various security reasons. Unfortunately, these websites can attract potential security threats, such as viruses, that can travel through an unprotected network. You can easily counter proxies by upgrading your security features and blocking any related websites.
Steps
-
Open File Explorer. On the taskbar at the bottom of the screen, click the icon that looks like a folder. This folder is known as the “File Explorer”. File Explorer is a folder that shows your most frequently visited folders and most recent files. After clicking File Explorer, a new window will open on your screen. In the left sidebar, there is a list of destinations available on your computer.
-
Click This PC. This PC is designed to easily access user related folders (such as My Documents), currently connected devices, and your computer's storage device, most commonly a hard drive or a solid-state drive.Advertisement
-
Click on "Local Disk (C: )". Located under Devices and drives, this drive allows access to your computer's data and system folders.
-
Click the Windows folder.
- Scroll down to the bottom.
- Double-click the folder named “Windows”.
-
Open System32. System32 is a folder that contains important data to keep Windows and all programs running.
-
Open the drivers folder. The drivers folder delves deeper into your computer's hard drive, allowing access to data to various programs.
-
Open the etc folder. The etc folder keeps your system's configuration files in one neat spot. Double-click this folder to open it.
-
Edit the hosts file. In order to create your blacklist, you will need to edit the hosts file with the URLs of the sites you want blocked.
- Right click “hosts”.
- In the menu that opens, click “Open With…” (or “Open with another program”).
- A new menu called “How do you want to open this file?” will open.
- Select “Notepad”.
-
Scroll down to the bottom of the text file. At the bottom of the file, you’ll have space to type in.
- If there isn't any space to type by default, click at the end your document and hit your Enter button two or three times to create space.
-
Type “127.0.0.1” then press the Tab key. 127.0.0.1 refers to your computer's local IP address. Any website that tries to connect to your computer will access partially through this localhost.
- Alternatively, you can type a single space instead of pressing Tab.
-
Add the URL of the website you would like to block. For example, if you want to block Yahoo!, type www.yahoo.com.
- Entering variants of the websites will help ensure that they're blocked, like yahoo.com or m.yahoo.com
-
Save your changes. Saving your file will allow the new block to take effect. To save your file:
- Click “File”.
- In the dropdown menu, click “Save”.
-
Test to make sure the website is blocked. You'll want to make sure the URLs you entered are actually blocked.
- Open a browser of your choice.
- In the URL box, type the website that you've blocked in your hosts file. Type them exactly as you've entered them in the original file.
-
You're finished! If your website is successfully blocked, you'll see an Unable to Connect page.
- If you're still able to access the website, either copy from the browser and paste it into your hosts file.
- Be sure to save the hosts file after making any changes.
- If there is web server software running on your computer, you may connect to your local web server rather than seeing a "refused to connect" page.
Advertisement
-
Open Finder. Finder allows you to access your user files and will open to the Documents folder by default.
-
Open your Utilities folder. Click Applications in the left sidebar and scroll down to access the Utilities folder, which contains important system based applications, such as Keychain Access and Disk Utility.
-
Double-click on Terminal. Terminal is an application that runs using the command line, similar to DOS.
-
Access the hosts file.
- In the blank window that appears, type sudo nano /etc/hosts
- Press Enter.
-
Enter your administrator password. You'll be prompted to enter your administrator password, which is what you use to access your computer. Type it in and then press Enter.
- Open the hosts file. After pressing enter, a new window will open for you to edit. The hosts file is used to dictate how different web sites connect to your computer and save data.
-
Scroll to the end of the text file. There will already be text within your host file. Do not delete or change this text. Underneath the text, there should be space for you to type.
- If there isn't already any space, click your mouse at the end of the last line of text and press Enter to create a new line to write on.
-
Type “127.0.0.1” and press the spacebar. 127.0.0.1 is your computer's local IP address. This is what web sites use to access your computer's files and save data.
-
Type the website you wish to block. For example, if you wish to block Bing, type in www.bing.com.
- Typing in variations of websites will help ensure that they're blocked, like bing.com or m.bing.com
-
Press Control-O to open the save box. Since the hosts file opens in a special window, you'll be unable to save normally.
- If, when you save, your file name ends with “-original”, delete that ending.
-
Press Enter close the dialogue box. You can also click Save to exit.
-
Exit the editor. Click the red circle in the top left corner of the window to close out of the text editor and return to the Terminal's interface.
-
Type sudo dscacheutil -flushcache. While the Terminal window is still open, type the new command into the new command line.
-
Press Enter. This will commit the changes to your computer and also formally close the special text editor.
-
Finished! Test the websites you've blocked. If successful, your computer will be unable to connect to the website.
Advertisement
-
Open Control Panel.
- Open the Start Menu at the bottom of your screen.
- Click on the Control Panel shortcut.
- In Windows 10, type Control Panel in the Start Menu's Search bar.
-
Click on Internet Options. Once the Control Panel folder has opened, double click on Internet Options. A new dialog box will open on the screen.
- In Windows 10, you can type “Internet Options” in the search bar in the upper right corner of the Control Panel window.
-
Click on the Contents tab. Within the new dialog box, click on the tab labeled “Contents”.
-
Enable the Content Advisor. The Content Advisor will help users regulate acceptable content depending on ratings, content, and exclusion.
- Scroll through the categories under “Select a category to view ratings”.
- There's a slider that allows you to set the acceptable level each category is blocked. A slider set to the far left will allow all content related to a category while a slider set to the far right will not allow any related content.
-
Create a password. If this is your first time enabling the Content Advisor, you will be prompted to create a password to access or change this tab in the future.
- Re-enter the password to confirm.
- Click Apply.
- If you've already used Content Advisor, re-enter the password you created the first time.
- Enter and re-enter the password you wish to enable the content advisor.
-
Select the Approved Sites tab. In this tab, you can create a list of websites you wish to access despite their content.
- Click Settings.
- Enter security password.
- Click on the Approved Sites tab.
-
Close the dialog box. Once you've configured your settings as you wish, click OK to save changes and close out of the dialog box. Once you are done with adding the websites to block, click OK to close the dialog box.
-
Close Internet Options. Click OK once again to exit out of the Internet Options window.
-
Finished! Once you're done, you can browse different websites to make sure the categories you've regulated are blocked appropriately.
Advertisement
-
Install Block Site. Extensions help Chrome do additional tasks that it might not be able to do otherwise. Block Site is an extension that, well, blocks websites.
- Click on + Add to Chrome in the upper right corner of the pop up module.
- A dialogue box will appear saying “Add Block Site?”.
- Click “Add extension”.
- Extension will appear in the download bar at the bottom of the screen.
- Once extension has been downloaded, there will be a dialog box saying Block Site has been added to Chrome.
-
Right click to block websites. You can manually block individual websites.
- Right click anywhere on the web site.
- In the dropdown menu, hover over “Block site”.
- Click “Add current site to blacklist” in the secondary menu.
-
Create a custom blacklist.
- Right click anywhere on your browser window.
- In the dropdown menu, hover over “Block site”.
- Click “Options” in the secondary menu.
- Chrome will open a new tab with settings for the Block Site extension.
- In the left sidebar, click “Block words”.
- Toggle “Custom list” to on.
- In the text box, type in the word you wish to block.
- Click the “Add word” button next to the text box.
-
Done! While in Chrome, try to access website using the URL or keywords you've blocked.
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
- Blocking URL keywords or phrases can often be more effective than blocking the proxy site itself.Thanks
- Sometimes, network safe website can be blocked accidentally because of their shared keywords. Keep an eye out for these sites and be sure to unblock them.Thanks
- Be careful when deleting proxy blocking apps. Your mobile device's proxy settings will return to default once these apps are gone.Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
Warnings
- Always setup your security software according to administration standards and ensure the software has been up correctly.Thanks
- While blocking proxy sites is half the battle of many network intrusions, practicing good network security habits is essential to counteract security breaches or alerts. Constant vigilance and a knowledgeable administrator are keys to a solid network.Thanks
- Proxies are not the only way to circumvent network filters, but they are the most common.Thanks
Advertisement
About This Article
Thanks to all authors for creating a page that has been read 96,300 times.
Advertisement