how do i make a program, when ever a user go to a certen website, it have to block it.

ex, if i type http://www.mysite.com in the address bar and press enter or go , a page have to display and it have to say "You don't have permisson to go to this website"


how do i do it???