LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-12-2016, 02:26 PM   #1
nathanraymond3
LQ Newbie
 
Registered: Feb 2016
Location: Oregon City, OR
Distribution: SUSE 11
Posts: 1

Rep: Reputation: Disabled
Question New to Linux trying to Setup a way to Block websites


I am new to Linux I just installed Linux on My home Server. I am Trying to setup a way to block certain sites for my kids. I have heard a proxy server. IF that is the way to go can some one point me in the right direction in how to set up and configure a proxy server I have Linux SUSE 11. Anything you can do to help would be appreciated.
 
Old 02-12-2016, 02:42 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Welcome to LQ!

Look at the bottom of this page, there are four similar threads to begin with.
 
1 members found this post helpful.
Old 02-12-2016, 04:14 PM   #3
mothergoose729
Member
 
Registered: Aug 2008
Distribution: Ubuntu x64
Posts: 118

Rep: Reputation: 19
Squid is very powerful proxy server this should fit your needs.

What you would want to do is create an access group (with the sites you want to block) and then explicitly deny it. The Squid documentation in the configuration file is a great reference.

One of many guides you might follow:

http://www.brennan.id.au/11-Squid_Web_Proxy.html
http://stackoverflow.com/questions/8...g-squid-server

You will need to manually configure their web browser to use your proxy.

Your router might support content filtering, which would be a more direct way.

Last edited by mothergoose729; 02-12-2016 at 04:15 PM.
 
1 members found this post helpful.
Old 02-12-2016, 04:56 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,000

Rep: Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513
Hello and welcome to LQ.

I might be tempted to run a virtual machine on it. Then install untangle linux and use it. You'd point all your traffic to the virtual machine. A smart kid could figure it out.


Might see if something like this would work. https://www.opendns.com/about/press-...s-safe-online/
 
1 members found this post helpful.
Old 02-12-2016, 06:13 PM   #5
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 222

Rep: Reputation: 20
Quote:
Originally Posted by nathanraymond3 View Post
I am new to Linux I just installed Linux on My home Server. I am Trying to setup a way to block certain sites for my kids. I have heard a proxy server. IF that is the way to go can some one point me in the right direction in how to set up and configure a proxy server I have Linux SUSE 11. Anything you can do to help would be appreciated.
If it's specific sites, you can use entires in /etc/hosts to make www.badsite.com resolve to 127.0.0.1

Maybe http://winhelp2002.mvps.org/hosts.htm
 
2 members found this post helpful.
Old 02-12-2016, 07:26 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,000

Rep: Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513
I do like hosts files a lot as jnojr mentions. They have been changed to point to 0.0.0.0 and don't forget about ipv6 issues. Some sneaky hackers put a server on 127.0.0.1 so it isn't as good as it used to be.
 
Old 02-14-2016, 10:12 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,533
Blog Entries: 2

Rep: Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577
nathanraymond3, if you want to block sites for the entire system, then blocking them via /etc/hosts is a simple and effective solution.

there's even some utilities to help you set it up & maintain it, e.g. hostsblock.

just don't give your kids your root password :-)
 
1 members found this post helpful.
Old 02-14-2016, 09:12 PM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,327

Rep: Reputation: 225Reputation: 225Reputation: 225
check out links below:

http://www.linuxhomenetworking.com/w...d#.VsFA1bR96M8

http://broexperts.com/2014/12/block-...n-squid-proxy/

it's good to block website via hosts, but it would be better to block sites via keyword and put in the keywords you think might not be good for kids.

and other way is to restrict the hours, let' say from 8pm to 8am no internet access. Military Law, no matter how cute they are don't be lure with their cuteness.. LOL.. if you can resist it.

Cheers..
 
1 members found this post helpful.
Old 02-14-2016, 09:41 PM   #9
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,647
Blog Entries: 2

Rep: Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110
One-half the time give them access to only one browser then setup a whitelist but be extensive and make links to each site.

The other-half the time should be full access with "parental" commentary, LIVE!
 
Old 02-14-2016, 11:40 PM   #10
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
Privoxy does exactly what you want but it does require some thinkering.

privoxy.org
 
1 members found this post helpful.
Old 02-15-2016, 08:11 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,000

Rep: Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513
I like the idea of a whitelist too. If you can download one or just make it yourself. Some pages like google might allow one to bypass dns and whitelists.
 
1 members found this post helpful.
Old 02-16-2016, 05:43 PM   #12
patchthekernel
LQ Newbie
 
Registered: Feb 2016
Distribution: PCBSD 9 | NetBSD 7 | Mint 17.3
Posts: 2

Rep: Reputation: 9
Blocking sites may work for young kids. But, at age 12 and up, they can find ways around it.
 
1 members found this post helpful.
Old 02-17-2016, 11:10 AM   #13
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,628

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
DansGuardian?
http://dansguardian.org/?page=whatisdg
 
Old 02-17-2016, 12:43 PM   #14
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian, CentOS
Posts: 716

Rep: Reputation: 196Reputation: 196
maybe a pfsense firewall box?

https://www.pfsense.org/products/
 
  


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 block websites in Linux? arunyadav Linux - Newbie 27 04-21-2014 03:27 PM
how can I block some list of websites in redhat linux server deepuvl Linux - Security 2 12-13-2011 11:16 AM
How to block websites? cusri2004 Linux - Newbie 1 12-26-2010 10:07 PM
how to block websites .. huno Linux - Software 5 04-22-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 PM.

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