Tuesday, September 8, 2015

How to Block a Website From an Apple Computer


Open the 'Applications' folder. Double click 'Utilities' and 'Terminal.' A command prompt will open.
Type 'sudo nano /etc/hosts' without the quotation marks and hit 'Return.'
Enter the Administrator password for the computer. This should bring you to a text file with the words 'Host Database' at the top.
Use the arrow keys on the keyboard to move the cursor down to the bottom of the file. Type '127.0.0.1 (website)' without the quotation marks. For example, if the website that you want to block is example.com, type '127.0.0.1 www.example.com.'
Hit the 'Control' and 'O' keys on the keyboard simultaneously, then hit 'Return' to save the file. Close the terminal window. The website that you have specified is now blocked. To remove the block, return to the Host Database using the steps outlined above, and remove the line referencing that website.
VPS Hosting

No comments:

Post a Comment