Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to block specific websites on Safari Mac?

Hi does anyone know how to block specific websites on Safari for Mac???


I don't want the traditional way through parental controls on system preferences ,,, is so tiring to use since I'm the only user... I just want some web pages out of the way! Does Apple have a way to do this on Safari 7.0.1 ___ maybe something similar to Safari on iOS ,,, please let me know! If not is there an app for this purpose? ... but do not tell me: K9 web protection by blue coat please ... that is pure junk... so please some small info will help thanks!

MacBook Pro, OS X Mavericks (10.9), 13-inch, Early 2011

Posted on Jan 18, 2014 12:18 AM

Reply
Question marked as Best reply

Posted on Jan 18, 2014 9:40 AM

I don't want the traditional way through parental controls on system preferences ,,, is so tiring to use since I'm the only user

There is no other way if you lack the self-disciplin of a normal adult to not go to that web page.

38 replies

May 5, 2016 11:52 AM in response to Trey Yancy

This is a place to find help, not get insulted. If you can't help folks and feel a need to lash out, go buy a punching bag or something... please...


Anyway, go to /private/etc/hosts file. I like to use TextWrangler for such edits instead of terminal editors. TextWrangler is free and it is a fabulous tool. It will ask you if it is OK to unlock the file to edit. Certainly you do... You can see the format for how to make the entries. When done, you save it and then you need to flush the active cache for this to take effect right away. You do this from terminal. You can skip the part when I add a semi-colon and have it issue a voice command saying the task is completed. Just type in: sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

Press enter...

The above works for OS X 10.5 and newer. If you have an older version, Google is your friend...


What you are doing is this.... When your computer browser initiates a request for a web address, the host name (mackeeper.com for example) must first be resolved to an IP address (54.175.172.236 for example). Your computer first looks to its DNS cache, the fastest possible lookup. If not there, then it looks to the hosts file. If there, then you are done. If not, then it makes a query to the DNS server. So, by flushing your cache and placing an entry in your hosts file, you then force the call for mackeeper.com or any in your list to simply direct the request back to your local machine. Bam... pest removed.. After a while, they may re-appear under a slight variation of the name. So you'll have to carefully watch the name that appears in the web address and then add it to your list.




User uploaded file

Dec 23, 2016 2:49 AM in response to Klaus1

Actually there is and it's called WasteNoTime Safari extension. You can either block a website all together or limit the time you spend on it. It's a great extension.

Some people are clever enough to make a business that answer people's needs, other just give them lesson on "self-discipline". There are many reasons why this user may want to block a website that do not involve a lack of control. You don't need to be self-sufficient in your replies. Either you know how to help and you help or you don't. that's the spirit of a community.

How to block specific websites on Safari Mac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.