{"id":21,"date":"2009-02-17T08:55:57","date_gmt":"2009-02-17T02:55:57","guid":{"rendered":"http:\/\/techsatwork.com\/blog\/?p=21"},"modified":"2016-01-07T11:31:15","modified_gmt":"2016-01-07T05:31:15","slug":"blocking-a-website-on-a-mac","status":"publish","type":"post","link":"https:\/\/techsatwork.com\/?p=21","title":{"rendered":"blocking a website on a mac"},"content":{"rendered":"<p>I found an easy way to block a website :<\/p>\n<p>1. open spotlight and search for Terminal<\/p>\n<p>2. Open terminal<\/p>\n<p>3. sudo su &#8211; \u00c2\u00a0 \u00c2\u00a0and type your password<\/p>\n<p>4. From the root prompt type \u00c2\u00a0vi \/etc\/hosts<\/p>\n<p>5. At\u00c2\u00a0the end of the existing text, type 127.0.0.1 , a space and then the site you want blocked, like this<\/p>\n<p>&#8230;.<br \/>\n127.0.0.1 WWW.BLOCKEDSITE.COM<br \/>\n127.0.0.1 BLOCKEDSITE.COM<\/p>\n<p>6 save the file by type \u00c2\u00a0:wq! \u00c2\u00a0&#8211; this saves the file<\/p>\n<p>7. Clear the cache of the browser and try navigating to blocked site.\u00c2\u00a0<\/p>\n<p>8 . type exit on the terminal and then close it.<\/p>\n<p>Any application that access the site will also be blocked. \u00c2\u00a0 If you want to remove the block, follow the same steps , and remove the lines you added above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found an easy way to block a website : 1. open spotlight and search for Terminal 2. Open terminal 3. sudo su &#8211; \u00c2\u00a0 \u00c2\u00a0and type your password 4. From the root prompt type \u00c2\u00a0vi \/etc\/hosts 5. At\u00c2\u00a0the end of the existing text, type 127.0.0.1 , a space and then the site you want [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[4],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-mac"],"_links":{"self":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":2,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":1556,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions\/1556"}],"wp:attachment":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}