LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New to Linux trying to Setup a way to Block websites (https://www.linuxquestions.org/questions/linux-newbie-8/new-to-linux-trying-to-setup-a-way-to-block-websites-4175572113/)

nathanraymond3 02-12-2016 02:26 PM

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.

Emerson 02-12-2016 02:42 PM

Welcome to LQ!

Look at the bottom of this page, there are four similar threads to begin with.

mothergoose729 02-12-2016 04:14 PM

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.

jefro 02-12-2016 04:56 PM

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/

jnojr 02-12-2016 06:13 PM

Quote:

Originally Posted by nathanraymond3 (Post 5499291)
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

jefro 02-12-2016 07:26 PM

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.

ondoho 02-14-2016 10:12 AM

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 :-)

JJJCR 02-14-2016 09:12 PM

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..

jamison20000e 02-14-2016 09:41 PM

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! ;)

MrTux 02-14-2016 11:40 PM

Privoxy does exactly what you want but it does require some thinkering.

privoxy.org

jefro 02-15-2016 08:11 PM

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.

patchthekernel 02-16-2016 05:43 PM

Blocking sites may work for young kids. But, at age 12 and up, they can find ways around it.

DavidMcCann 02-17-2016 11:10 AM

DansGuardian?
http://dansguardian.org/?page=whatisdg

erik2282 02-17-2016 12:43 PM

maybe a pfsense firewall box?

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


All times are GMT -5. The time now is 11:45 PM.