Open Source Support Forum

Please or Register to create posts and topics.

how to block access to any website

i'll show you how to block access to a website,lets say facebook.
we don't want our kids to access it at all.....

as root (or using sudo) edit /etc/hosts file,
and simply add at the end of the file,
some line like this below:

127.0.0.1 http://www.facebook.com/*

(replace http://www.facebook.com/* with the desired site....)

Save the file,and test it!

The same thing we can do if we use a windows machine,
but the path of the file is C:\Windows\System32\drivers\etc\

Remember,this hack may not work after an update,so you should check it from time to time!