Trending
  • How to Turn Off Auto-Correct in Mac, Windows, iOS, Android
    How to Turn Off Auto-Correct in Mac, Windows, iOS, Android
  • How to Mount or Burn an ISO File in Windows 10
    How to Mount or Burn an ISO File in Windows 10
  • How To Download Torrents In PC and Android
    How To Download Torrents In PC and Android
  • Top 5 Apps to Customize Your Android Keyboard
    Top 5 Apps to Customize Your Android Keyboard
  • How You Can Keep Your WiFi Safe

    How You Can Keep Your WiFi Safe

    Even if having to deal with WiFi security is a real pain for some, it is something that needs to attention. Someone could steal your WiFi and use it for who knows what and cross your fingers that it is not for anything illegal.

    Read more...

  • What You Should Keep in Mind Before Buying a Used Smartphone

    What You Should Keep in Mind Before Buying a Used Smartphone

    As long as the phone works fine and has what you need, who care if it's not this years model. So, you've decided that the best thing you can do is buy a used phone. Before you go phone shopping, there are some things you need to keep in mind before you buy.

    Read more...

  • The Most Effective Ways to Get More Followers on Instagram

    The Most Effective Ways to Get More Followers on Instagram

    Before you give up and think about closing your Instagram account, there are some tips and tricks on how to increase your Instagram followers you should know about. By following these tips,...

    Read more...

  • How to Make a GIF From a Video (Windows, Mac, iOS, Android)

    How to Make a GIF From a Video (Windows, Mac, iOS, Android)

    ver the certain period of time, GIF images have gained so much popularity, and you can see them on the Social Networking websites. In the comments section of a website or your Twitter timeline, GIF is actually an animated image format which is created from different images or videos.

    Read more...

  • How to Take Great Pictures with Your Android Device

    How to Take Great Pictures with Your Android Device

    When was the last time you used a digital camera to take a picture? It's probably been a while, right? Most of us used our smartphone to take a million pictures of our pets or of that beautiful sunset you were lucky enough to see.

    Read more...

  • The Best iPhone 7 Tips and Tricks You're Probably Not Using

    The Best iPhone 7 Tips and Tricks You're Probably Not Using

    iOS offers an endless amount of great features you can enjoy, but you may not be taking advantage of them because you might not even know they exist or are too afraid you'll mess something up by tampering with it.

    Read more...

  • Everything You Sould Know Before Buying an SD Card

    Everything You Sould Know Before Buying an SD Card

    It's almost hard to believe that something so small can cause so many problems, doubts or confusion. For some, how you choose an SD card is of little or no importance while to others it's the most important thing.

    Read more...

How to block and unblock websites on a Mac

How to block and unblock websites on a Mac

7.0/7 rating 1 vote

Nowadays, one of the best time wasters has certainly got to be social network sites. More particularly, Google Plus+, Twitter and Facebook.

If you need to avoid your boy or girls from using any kind of specific web sites or your staff member to get away from unneeded Web sites, Links or Application then there have already been short-term methods like SelfControl, a free applicaion established by Steve Lambert, you are able to also tweak Safari, set Parental Lock or edit hosts file for blocking website or blogs.

How to Block Websites in Safari using Mac OS X Yosemite or El Capitan

Block Websites by editing hosts file

Step 1: Open the Terminal.

You can run the Spotlight and type "terminal" to open it or you can see the some ways to open Ternimal:

See more: Solomen's article: How to open the Terminal on Mac

Step 2: At Terminal interface, type the line below and hit Enter:

sudo nano /etc/hosts

Then, you certainly will be asked about Administrator Password of your Mac.

Step 3: Once you type and enter the password successfully, the hosts file will be opened by Terminal.

Step 4: Create new line by pressing up or down arrow button and then type the IP "127.0.0.1" + "Space" + "URL or Website address". And type another URL or Website address following the same steps.

For example:
127.0.0.1 www.facebook.com
127.0.0.1 www.omghowto.com

Step 5: When you have done whole the sites or url which you want to block, you can save the hosts file by pressing the Ctrl + O and then Return button. Finally, press the Ctrl + X to exit the screen.

Note: Keep in mind that you must run the following command to flushe your DNS cache for taking effect to the changes. Type and then Enter:

sudo dscacheutil -flushcache

Now go to the URLs or Sites which you have blocked. If it has already edited correctly, you should not be able to access that URL and Site address. 

We walk you through the process in this some images guide for Mac right below

1 - Open the Terminal
2 - Type command line and Enter the password
3 - Type the site and url which need to block
4 - Press Ctrl  O and Enter to save the change. Then press Ctrl  X to exit
5 - Type command line to flushe DNS cache
6 - Result - This webpage is not available

Unblock the site which you have blocked via hosts file

Quite Simple! Just open Terminal >> Type the command: sudo nano /etc/hosts >> Delete the URL and Site which you have blocked before >> Press Ctrl+ O and Enter. You also need to flushe the DNS for taking effect.

Block Websites by using Parental Controls

You can easily use the Parental Controls in Mac OS X to assist block user accounts directly from accessing to some websites which you want. This part explains how you can block websites by using Parental Controls in detail.

Step 1: Firstly, create a individual User Account for your children.

Step 2: Browse to your Apple menu and click on "System Preferences".

how to block websites on mac 1

Step 3: Select Parental Controls icon.

how to block websites on mac 2

Step 4: Then select the Lock icon ( displayed at the end of the window).

how to block websites on mac 4

Step 5: Selecting the Lock icon, you will certainly be asked to type in password of Mac. Click on to Unlock.

Note: If you haven't yet created an user account, you can easily create one.

The first, select Create a new user account with parental controls >> Click Continue.

how to block websites on mac 3

Then fill out the user’s age, full name, account name, make a password and a password hint (if needed), and then click on “Create User”.

how to block websites on mac 5

Step 6: Then choose the User account which you need to lock. Mac OS X provides you controls under 5 categories includes: Apps, Web, People, Time Limits, and Other controls.

Step: 7: Choose Web tab. Then choose Try to limit adult websites automatically and click on Customize... button at the right.

how to block websites on mac 6

Step 8: Under Never allow these websites, select "+" button and type the URLs and Websites which you need to block.

how to block websites on mac 7

Finally, click on the Lock icon to avoid further changes. 

Now, if a kid user access to sites that's prevented, they'll come across a notification such as this. Normally, the user will need to go in other places.

how to block websites on mac 8

Block Websites by using SelfControl app

SelfControl is a totally free and open-source app for Mac OS X which allows you block your own access to sidetracking sites, your web mail, or something else on the web. It enables you to block a particular website or websites for a particular amount of time. When you need to focus on a project for three or four hours without being able to use Facebook, Twitter, etc, you can easily set the timer for three or four hours to block the sites. It will only be unblocked when the time limit expires. If this seems like it'll be great to you, keep reading!

Step 1: Download and open the SelfControl app from here.

SelfControl

Step 2: At SelfControl interface that will be appeared, click on Edit blacklist button.

block website using SelfControl

Welcome to SelfControl

block website using SelfControl 1

Step 3: Click on (+) button to add the site which you want to block it on Mac.

block website using SelfControl 2

Step 4: Your blacklist window may look like the image above. Then, close the blacklist window now, and drag the slider in the main window to set the time you want the sites to be blocked between a min of 15 minutes and a max of 24 hours.

Step 5: Finally, click on Start button.


Latest

  • How You Can Keep Your WiFi Safe
    How You Can Keep Your WiFi Safe
  • How to Hide Pictures, App Icons and Files on Android
    How to Hide Pictures, App Icons and Files on Android
  • What You Should Keep in Mind Before Buying a Used Smartphone
    What You Should Keep in Mind Before Buying a Used Smartphone
  • 10 Best Backpacks for College Students
    10 Best Backpacks for College Students
  • Top 5+ Best Point and Shoot Digital Camera
    Top 5+ Best Point and Shoot Digital Camera
  • How to Use Face Swap on Snapchat ( Face-Swap Feature )
    How to Use Face Swap on Snapchat ( Face-Swap Feature )

Author

Solomen
Solomen

Solomen is Editor of OMG!Howto who covers technology news, how-to guides and more. Solomen uses an iOS and Android devices as well as Mac and Windows. In his free time, he often listens to Baroque music and goes swimming. Follow him on Instagram: @solomen1992

comment

Leave a comment

You are commenting as guest.

Recent Comment

Great article

I run Directory Report as an administrator
That way it can find hidden file
http://www.file-utilities.com

It can...

Allan Man 23. November, 2016 |

This article is best google chorme are install.This extensions are help different email autuomatically introduce to user. This is must...

Tilly Wilson 10. November, 2016 |

Photobucket has been having technical issues for some time and is, in fact, down right now.

Also, you REALLY need a copy editor. Are...

EvenNote 04. November, 2016 |

About Website

OMG!HOWTO is a technology website where we cover the latest from Apple, Facebook, Microsoft and Tips & Tricks. We seek to present fresh news, useful tips, tutorials, applications that the modern technology user will appreciate. OMGHOWTO.COM is powered by Joomla.

0
Shares
0
Shares