LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-07-2004, 10:19 PM   #1
debug019
LQ Newbie
 
Registered: Aug 2004
Distribution: redhat 9
Posts: 20

Rep: Reputation: 0
Question How many ways can u block a website?


Guys i need ur help...

How many ways can u block a website in Linux?
I know some of them using shorewall, squid, named?
what else? specially the built in functions of linux, and not using third party programs just to block a site...please help....thanks!
 
Old 11-07-2004, 10:23 PM   #2
fblucher
Member
 
Registered: Oct 2004
Location: Australia
Distribution: NLD 9
Posts: 60

Rep: Reputation: 15
Not exactly sure what you mean by "built in to Linux" but I assume you're refering to the Kernel. So iptables/ipchains would be what to use.

Seeya,
Finn.
 
Old 11-07-2004, 10:27 PM   #3
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
Block the IP with IPtables and redirect it's DNS to localhost with hosts file (incase they change IP).
 
Old 11-07-2004, 10:28 PM   #4
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
the easiest way is to esit your hosts file with something like:
www.badwebsite.com 127.0.0.1

this will redirect to you which will show nothing essentially blocking the site.
 
Old 11-07-2004, 11:34 PM   #5
debug019
LQ Newbie
 
Registered: Aug 2004
Distribution: redhat 9
Posts: 20

Original Poster
Rep: Reputation: 0
thanks to all the replies...
is there a way to list all the blocked site in iptables/ipchains???

thanks!!
 
  


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
access the block website by certain IP space_beyond Linux - Security 1 06-03-2005 01:33 AM
IPTables and PPTPD :S (to block or not to block) thewonka Linux - Networking 0 03-24-2005 07:58 PM
piping both ways? quinton Linux - Newbie 3 09-20-2004 08:10 PM
Cant Install Off CD! Other Ways? Rv5 Red Hat 5 09-04-2003 03:20 PM
Ways to Partition? cclavey Linux - Newbie 2 03-12-2003 02:22 PM


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