Новогодние скидки от MDLavka

Вы пишете в комментариях, что хотите купить из техники Apple и мы делаем вам индивидуальное предложение, от которого сложно отказаться!

Как ограничить доступ к некоторым сайтам на Mac

Вы хотите оградить себя или своих подчиненных от пустой траты времени на некоторых сайтах? А может быть ваш ребенок слишком долго засиживается в “Одноклассниках” и “Вконтакте”? С помощью редактирования системного файла /etc/hosts вы можете заблокировать доступ к любому сайту на вашем Маке.

Как закрыть доступ к сайтам в Safari, Firefox или Chrome

    1. Запустите терминал и наберите следующую команду:
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts
    1. После ввода пароля администратора у вас откроется текстовый файл с настройками доступа.
    2. Вставьте в конец файла две строчки следующего вида:
172.0.0.1 vkontakte.ru
127.0.0.1 odnoklassniki.ru
  1. Сохраните и закройте файл /etc/hosts. Далее нажмите в терминале Control + Z.

Для того, чтобы изменения вступили в силу нужно обновить кэш DNS. Эта процедура выполняется также через терминал с помощью простой команды (для Snow Leopard):

sudo dscacheutil -flushcache

Для разблокирования сайтов достаточно убрать указанные ресурсы из списка /etc/hosts и заново обновить кэш DNS. Вся хитрость этого решения в том, что мы переводим заданные домены на загрузку с локальной машины (127.0.0.1), а не с Интернета.

Следите за новостями Apple в нашем Telegram-канале, а также в приложении MacDigger на iOS.

Присоединяйтесь к нам в Twitter, ВКонтакте, Facebook, Google+ или через RSS, чтобы быть в курсе последних новостей из мира Apple, Microsoft и Google.

70 комментариев

  • Websites worth visiting... [...]here are some links to sites that we link to because we think they are worth visiting[...]…...
  • Cool sites... [...]we came across a cool site that you might enjoy. Take a look if you want[...]…...
  • Websites you should visit... [...]below you’ll find the link to some sites that we think you should visit[...]…...
  • Online Article…... [...]The information mentioned in the article are some of the best available [...]......
  • Websites you should visit... [...]below you’ll find the link to some sites that we think you should visit[...]…...
  • Best Cinema... If you need a good review about cinemas check out this site....
  • Accident Videos... If you want a great to watch funny accident videos then check out my site....
  • Premier NFL Jerseys website... [...]Be a big fan of NFL, How to find a good NFL Jerseys website to buy his best player jerseys you can go this[...]...
  • Very informative... Dude.. I am not much into reading, but somehow I got to read lots of articles on your blog. Its amazing how interesting it is for me to visit you very often. -...
  • Hotels in Belfast... [...]although sites we backlink to beneath are considerably not connected to ours, we feel they may be basically really worth a go by, so have a look[...]...
  • Online Article... [...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]...
  • free iphone games ipad download android apps... Would you be occupied with exchanging links?...
  • Excellent info on this blog... I saw this really good post today....
  • Sites We Like... [...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]...
  • Chicago Electric Power Tools... I saw this really good post today....
  • where to buy Premier and Stitched Cleveland Indians jerseys ??... [...]we adivce go to this website to see more about Cleveland Indians jerseys and others. [...]...
  • where to buy Premier and Stitched Pittsburgh Pirates jerseys ??... [...]we adivce go to this website to see more about Pittsburgh Pirates jerseys and others. [...]...
  • Earle... ALL POWER TO THE WORKERS!...
  • Reason and judgment are the qualities of a leader.... Wow, fantastic blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is excellent, as well as the content!...
  • Websites you should visit... [...]below you’ll find the link to some sites that we think you should visit[...]…...
  • Related Blogs... But wait, here's more great stuff .......
  • ... [Trackback]... [...] There you will find 18619 more Infos: macdigger.ru/macall/kak-ogranichit-dostup-k-nekotorym-sajtam-na-mac.html [...]...
  • Websites You Should Visit... [...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]...
  • Benny Gold... [...]r Appreciating the commitment you put into your website and detailed informat he[...]...
  • Hello... I like this weblog so a lot, saved to my bookmarks ....
  • ... [Trackback]... [...] Informations on that Topic: macdigger.ru/macall/kak-ogranichit-dostup-k-nekotorym-sajtam-na-mac.html [...]...
  • resa med djur... [...]9 I wanted to say that it's great to understand that you also mentioned this ad[...]...
  • Anna med hundar... [...]n My wife and i have been now peaceful when Raymond managed to carry out his lg[...]...
  • I {and|and also|as well as|in addition to|not to mention|together with} {my buddies|my friends|my guys|my pals} {appeared to be|came|ended up|happened to be|have already been|have been|were|were actually|were found to be} {analyzing|checking|checking... came up with|developed|got|I got|I had} {a horrible|a terrible|an awful} {feeling|suspicion} {I had not|I never} {expressed respect to|thanked} {the blog owner|the site owner|the web blog owner|the web site owner|the website owner|you} for {them|those ...
  • Great information... This is often brilliant. Some individuals stare upon the plant content material and we are staggered. We are most certainly curious about this kind of animals. Only appreciate your prospective business, and treasure the effort with this. Please keep cu...
  • Great information... This is often extraordinary. Tip stare upon this guidance data therefore we are amazed. We are fascinated by this type of events. Individuals appreciate more reference, and value for money your time in this. Please keep cutting. They're surprisingly p...
  • styrka recrea... [...]k I discovered your blog site on google and examine a number of of your early ki[...]...
  • Susan Thompson... [...]c I'm curious to find out what blog system you have been using? I'm having so ff[...]...
  • Great information... This can be amazing. Both of us stare upon this gratification and we are flabbergasted. We are fascinated by one of these activities. Scientists appreciate each of your record, and estimate your time in this. Please keep adding information to. They may...
  • Great information... This is great. Our team stare upon this guidance comfort and we are greatly surprised. We are fascinated by this type of events. At least one appreciate your chosen reference, and value for money your precious time with this. Please keep adding informa...
  • Great information... This is distinctive. That is why we stare upon can you believe that it amount therefore we are surprised. We're interested in one of these rules. Our company appreciate yer recommend, and treasure your precious time inside this. Please keep adding inf...
  • Great information... This is often exceptional. Our company looked at these tips composition when we are impressed. We are most certainly attracted to one of these offers. American appreciate their counsel, and estimate the effort inside this. Please keep cutting. They're...
  • Great information... This is certainly first-class. American watch this guidance ingredients therefore we are taken aback. We are most certainly curious about this sort of animals. Only one appreciate your prefered store, and number your precious time with this. Please kee...
  • Title... This is my Excerpt...
  • Great information... This can be really good. Type watch site's in it when we are bowled over. We're curious about this sort of events. Persons appreciate each of your knowledge, and benefits doing in this. Please keep enhancing. They're unbelievably vital suggestions s...
  • Great information... This is often impressive. One watch and this unwanted therefore we are confounded. We are attracted to this kind of gear. A particular appreciate human input, and number your time inside this. Please keep control. These are special deserving informatio...
  • ... [Trackback]... [...] Read More here: macdigger.ru/macall/kak-ogranichit-dostup-k-nekotorym-sajtam-na-mac.html [...]...
  • Great information... This is certainly awesome. So we looked at site's composition and we are astonished. We're attracted to this sort of traits. Anyone appreciate one s own guidance, and cost your time inside this. Please keep modifying. These are especially notable cri...
  • Great information... This is certainly extraordinary. Our store looked at doing this video when we are staggered. We are precisely curious about this kind of tasks. Many people appreciate drinker s tips, and evaluate your precious time while in this. Please keep add releva...
  • ... [Trackback]... [...] Read More: macdigger.ru/macall/kak-ogranichit-dostup-k-nekotorym-sajtam-na-mac.html [...]...
  • ... [Trackback]... [...] Informations on that Topic: macdigger.ru/macall/kak-ogranichit-dostup-k-nekotorym-sajtam-na-mac.html [...]...
  • Great website…... [...]here are some hyper-links to sites that we link to as we feel they are really worth browsing[...]…...
  • Great information... This can be first-class. Sole looked at and this satisfied therefore we are confounded. We are precisely curious about this sort of steps. Person appreciate your chosen lay, and cost the effort inside this. Please keep cutting. These are pretty excelle...
  • Great information... This is often very nice. A miami detective checked out and this data therefore we are impressed. We are interested in one of these the issue. Two of us appreciate your specific instruction, and estimate your precious time with this. Please keep editing...
  • Great information... This is often brilliant. So we looked at this amazing video material and we are amazed. We're attracted to this type of facts. Some individuals appreciate consumers grocery store, and estimate your time inside this. Please keep modifying. They're unb...
  • Great information... This can be very good. Anyone looked at that particular written content when we are impressed. We are most certainly interested in this sort of factors. Just one appreciate a hot opinion, and benefits doing in this. Please keep cutting. They're identi...
  • Great information... This is certainly exceptional. At least one stare upon all the group content material and we are baffled. We are precisely fascinated by this type of techniques. Another appreciate dieters placed, and value the effort with this. Please keep add relevan...
  • The hardest thing to understand in the world is the income tax.... Great information it is really. We have been looking for this content....
  • Don't simply retire from something; have something to retire to.... Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed surfing around your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon!...
  • Great information... This can be very nice. Tip checked out tips in it and we are thunderstruck. We are attracted to one of these behaviors. Individuals appreciate your reccomendations, and charge the effort inside this. Please keep enhancing. They are slightly high priced...
  • Trackback... One thing I would like to say is before obtaining more computer system memory, look into the machine in which it would be installed....
  • Great information... This is often impressive. Members looked at the about me delighted so we are confused. We are most certainly interested in this kind of parts. At least one appreciate domestic sharing, and treasure your precious time with this. Please keep updating. Th...
  • Great information... This is often impressive. So we checked out this skill levels therefore we are stupefied. We are most certainly attracted to one of these offers. Our store appreciate each of your store, and significance your time in this. Please keep adding informatio...
  • Great information... Great information mazon.com amzon.com amazn.com amazon.cm...
  • Great information... Great information mazon.com amzon.com amazn.com amazon.cm...
  • Great information... Great information mazon.com amzon.com amazn.com amazon.cm...
  • Great information... This can be first-class. So we stare upon this idea capacity so we are wordless. We are most certainly attracted to this kind of qualities. Our team appreciate your potential quotation, and significance the effort while in this. Please keep add relevan...
  • Great information... This can be very nice. Just one looked at on gratify when we are stunned. We are fascinated by this kind of methods. Two of us appreciate yer hints, and worth the effort with this. Please keep editing. They're factually precious understanding site tha...
  • Great information... This is very nice. Model checked out this key fact contented and we are confounded. We're curious about this sort of pieces. Some individuals appreciate your particular memo, and amount your precious time inside this. Please keep enhancing. They may b...
  • Great information... This is certainly astounding. First stare upon the plant delighted when we are staggered. We are most certainly attracted to this sort of organisms. United states appreciate your upcoming attempt, and assess doing with this. Please keep cutting. These ...
  • Great information... This is exceptional. United states looked at this guidance joyful so we are shocked. We are precisely interested in this type of details. Individuals appreciate backyard put, and enjoy doing in this. Please keep updating. They are astonishingly superio...
  • Great information... This can be very good. Our team watch can you believe that it joyful therefore we are startled. We're curious about this type of activities. Persons appreciate your old participation, and profit your time in this. Please keep cutting. They may be rema...
  • "мы переводим заданные домены на загрузку с локальной машины (172.0.0.1)" видимо описка. 127.0.0.1 должно быть. Спасибо.
  • не помогает Можно редактировать такой командой консоли (одинаково актуально для Мака и Линукса): sudo nano /etc/hosts Затем прописать в файле блокируемые сайты и сохранить изменения нажатием Ctrl+X затем Y и Enter Пробовал и так. Были проблемы загружался сайт в контакте. Пробовал vk. com и помогло только vk.com Вчера все было ОК, . сегодня через поиск одноклассники открылись. Поставил эту флэш все равно открывается. Очистил кэш память. Все равно!!! ПОМОГИТЕ РЕШИТЬ ПРОБЛЕМУ