Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 69 guests and 1 member online
 
Advertisement

You are here: Home arrow Resourcesarrow Tutorialsarrow How to block websites on a Mac
EH-Net
May 24, 2013, 02:05:18 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: How to block websites on a Mac  (Read 4308 times)
0 Members and 1 Guest are viewing this topic.
Jaska
Newbie
*
Offline Offline

Posts: 3



View Profile
« on: January 18, 2011, 08:51:23 PM »

1. Modify Hosts File

Step 1:
To edit the hosts file and add a new blocking entry, open up your Terminal and type the following (You’ll be asked for your root password because this is a system file):
Quote
sudo nano /etc/hosts

Step 2:
This will bring up a Nano box that looks like the one below. Yahoo has been added to block list as you can see. To block any other site, simply type it in the same format.

Note: one line, one site. And don’t forget to add “www” if the URL has been prefixed with “www”, or it will not work with Safari.

Step 3:
Click CTRL+X and Press Y in your keyboard to save modified buffer, and then press Enter to go back to Terminal.

Step 4:
Please run the following command in Terminal to take the changes take into effect:

  • 1. If you are using Tiger, please type the following and press Enter:
    Quote
    lookupd –flushcache

    2. For Mac OS X 10.5 and later, please type the following and press Enter:
    Quote
    sudo dscacheutil –flushcache

Now the web site has been successfully blocked on your Mac

2. Use a third-party blocking tool.
By modifying the Hosts file we can block any sites we want to on Mac. But we do not suggest it when you are not Mac savvy enough. There is an easy alternative for you: using a third-party blocker. They are mostly be used as parental blocking. Take a look at Parental Control Software webpage which introduces a lot about parental blocking and monitoring tool for Mac and Windows.



Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.078 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.