Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need some method to block the entire Internet other then a few sites on my 'whitelist'. I am looking for a solution that is not browser specific - so no add-ons/plugin suggestions please. Is there any file within the system or some Command to run in the terminal that will allow me to do this ?

share|improve this question
    
What Ubuntu release are you running? How are you connecting to the Internet? –  Mitch Jul 6 '12 at 6:14
    
You are probably looking for something like a firewall -- to give you a keyword to check for. A firewall limits access globally, and can work in both directions (from you to the internet and vice versa). –  Izzy Jul 6 '12 at 7:35

1 Answer 1

You can consider Privoxy, available from the Ubuntu Software Center. It's a proxy server that may do what you want. Section 3.27 has this:

3.27. Can I set-up Privoxy as a whitelist of "good" sites?

Sure. There are a couple of things you can do for simple white-listing. Here's one real easy one:

############################################################

Blacklist

######################################################

{ +block } / # Block all URLs

############################################################

Whitelist

######################################################

{ -block }
kids.example.com
toys.example.com
games.example.com
This allows access to only those three sites by first blocking all URLs, and then subsequently allowing three specific exceptions.

Another approach is Privoxy's trustfile concept, which incorporates the notion of "trusted referrers". See the Trust documentation for details.

These are fairly simple approaches and are not completely foolproof. There are various other configuration options that should be disabled (described elsewhere here and in the User Manual) so that users can't modify their own configuration and easily circumvent the whitelist.

share|improve this answer
    
I've installed privoxy but can't find this blacklist or whitelist anywhere. –  Joshua Robison Apr 29 '13 at 14:04
    
Hi, I haven't yet re-installed Privoxy after doing a clean install of Lubuntu 13.04. But I will get around to it soonish :) I'll ping you then! –  user25656 Apr 29 '13 at 15:34
    
@JoshuaRobison, Looks like you solved your problem here? –  user25656 Apr 29 '13 at 15:52
1  
and further more here : superuser.com/questions/393967/… :p –  Joshua Robison Apr 30 '13 at 0:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.