LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-22-2004, 02:21 PM   #1
huno
Member
 
Registered: May 2002
Distribution: Slackware 9.1
Posts: 161

Rep: Reputation: 30
how to block websites ..


how can i filter websites .. that mean .. blocking websites ..

i don't want users to enter illegal sites ..

i'm using Suse 9.0 pro
 
Old 04-22-2004, 02:45 PM   #2
7ux_spirit
LQ Newbie
 
Registered: Apr 2004
Distribution: Redhat 8.0
Posts: 21

Rep: Reputation: 15
/etc/hosts file would do the job.
linux will *first* check this file for ip addresses of site names.
so add those site names in that file with the loopback address (one address per line) like ..
127.0.0.1 www.sitetobeblocked.com

this prevents those sites from loading

Last edited by 7ux_spirit; 04-22-2004 at 02:46 PM.
 
Old 04-22-2004, 03:24 PM   #3
huno
Member
 
Registered: May 2002
Distribution: Slackware 9.1
Posts: 161

Original Poster
Rep: Reputation: 30
what's the name of the server ?
 
Old 04-22-2004, 04:37 PM   #4
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
Quote:
Originally posted by huno
what's the name of the server ?
what server are you looking for?

the /etc/hosts file is a local file that most OSs have someplace. M$ has em, as does linux, i would guess that MAC does too.

my hosts file has over 700 entries in it. does slow things down form time to time, but it keeps a lot of the junk out of my M$ systems and keeps a load of banner adds from coming up on my *nix systems.
 
Old 04-22-2004, 09:04 PM   #5
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Thats creative!

Most people set up a squid server that all your users go through and then you block access there. You could also block access with your firewall, but you need to know the IP.

Once again creative use on the host file.
 
Old 04-22-2004, 09:31 PM   #6
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
correct me if im wrong, but if you are using iptables you dont need the IP, you can use domains either partial or full URL to block em with your firewall no?
 
  


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
IPTables and PPTPD :S (to block or not to block) thewonka Linux - Networking 0 03-24-2005 07:58 PM
why does shorewall block my websites and vsftp stop postfix? Michele Linux - Newbie 5 06-18-2004 01:01 AM
Websites that sell websites..? mScDeX General 2 12-29-2003 04:01 PM
websites zipporah General 23 08-06-2003 03:13 AM
Websites? Nephlite Linux - Newbie 1 01-31-2002 02:00 PM


All times are GMT -5. The time now is 11:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration