Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-07-2004, 10:19 PM   #1
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
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.

Old 11-07-2004, 10:27 PM   #3
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
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:

this will redirect to you which will show nothing essentially blocking the site.
Old 11-07-2004, 11:34 PM   #5
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???



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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration