You are not logged in.

#1 2006-03-23 05:03:03

Galdona
Member
Registered: 2006-03-15
Posts: 196

blocking sites?

How can I block certain sites from the whole system (i mean not just in the browser)?

I want to prevent my little sister from seeing some sites, for example, w w w . p o r n . c o m.

I have no experience with firewalls or the like. Im not sure if what I actually need is a firewall.

P.S. I am using Opera (because it is fast and does not crash!)

Offline

#2 2006-03-23 05:32:10

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: blocking sites?

Edit /etc/hosts and add lines in for each site you wish to block. This is commonly used to block advertisements.

http://en.wikipedia.org/wiki/Hosts_file

eg, append a line like one of these:
0.0.0.0  pagead.googlesyndication.com
0.0.0.0  pagead2.googlesyndication.com
0.0.0.0  adservices.google.com
0.0.0.0  www.porn.com

But yeah. <insert typical message about filtering not being the best way, it's best for someone to keep an eye on what your sister is up to> Filters cant block everything.

James

Offline

#3 2006-03-23 05:37:39

enderst
Member
Registered: 2004-06-28
Posts: 69

Re: blocking sites?

iphitus beat me to the /etc/hosts file sad

could use squid check the faq for blacklists.

Offline

#4 2006-03-23 06:25:14

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: blocking sites?

better yet.
Set those sites to a loopback address..like..
127.0.0.50
Setup a webserver on your local box to listen on that ip with a simple page like "WTF do you think you are doing!?"
Then you will have a record of the request in the webserver logs as well... you can say, "dude. sis. you tried to go to badsite.com 5 times yesterday!"
*roll up newspaper*
bad...bad..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2006-03-23 08:18:41

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: blocking sites?

squid squid squid

Offline

#6 2006-03-23 12:41:02

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: blocking sites?

I think content filtering would be a better solution than blacklists. There is a nice article about setting up content filtering with iptables + squid + dansguardian: http://software.newsforge.com/software/ … 1209.shtml.

Offline

#7 2006-03-25 05:46:22

Galdona
Member
Registered: 2006-03-15
Posts: 196

Re: blocking sites?

thank you very much! i will read about and try out your suggestions.

(very funny cactus  big_smile )

Offline

Board footer

Powered by FluxBB