LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2009, 06:36 AM   #1
elusive_night
LQ Newbie
 
Registered: Jun 2009
Posts: 25

Rep: Reputation: 15
Ubuntu Website Blocking


Hello,

I've had a look for this thread in the forums and google and havn't come across anything that suits my needs.

I'm using Kubuntu 9.04 and need a method of blocking certain websites, openDNS is not an option due to I'm being at University (which is also the main reason I want to restrict my own access!).

What methods are available to me regarding this?

Many thanks for your help,

EN
 
Old 10-02-2009, 07:01 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by elusive_night View Post
Hello,

I've had a look for this thread in the forums and google and havn't come across anything that suits my needs.

I'm using Kubuntu 9.04 and need a method of blocking certain websites, openDNS is not an option due to I'm being at University (which is also the main reason I want to restrict my own access!).

What methods are available to me regarding this?

Many thanks for your help,

EN
An easy way: for each site you want to block, put the site's name in /etc/hosts with a bogus address like 0.0.0.0. The system will look in /etc/hosts first and return an unusable address.

There are many ways to accomplish this. The above has the advantage of being simple.
 
Old 10-02-2009, 11:47 AM   #3
elusive_night
LQ Newbie
 
Registered: Jun 2009
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lutusp View Post
An easy way: for each site you want to block, put the site's name in /etc/hosts with a bogus address like 0.0.0.0. The system will look in /etc/hosts first and return an unusable address.

There are many ways to accomplish this. The above has the advantage of being simple.
Lutusp, that is absolutely fantastic! I was considering editing the host files but did not know that I would be able to cause the system to resolve a false IP!

And all this time I spent looking for software the simplest I didnt even think of.

Thank you so much,

EN
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO blocking a website with iptables ?? 91change Linux - Security 2 06-15-2009 03:02 PM
squid website blocking Ammad Linux - Networking 1 11-07-2007 11:05 AM
DNS Website blocking Last Attacker Linux - Networking 3 10-29-2006 01:09 AM
squid website blocking? belkens Linux - Networking 2 12-11-2004 08:34 AM
Squid is blocking me out of one particular website. danielw Linux - Software 0 07-03-2004 12:30 AM


All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration