LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How many ways can u block a website? (https://www.linuxquestions.org/questions/linux-newbie-8/how-many-ways-can-u-block-a-website-252260/)

debug019 11-07-2004 09:19 PM

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!

fblucher 11-07-2004 09:23 PM

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.

ror 11-07-2004 09:27 PM

Block the IP with IPtables and redirect it's DNS to localhost with hosts file (incase they change IP).

mAineAc 11-07-2004 09:28 PM

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.

debug019 11-07-2004 10:34 PM

thanks to all the replies...
is there a way to list all the blocked site in iptables/ipchains???

thanks!!


All times are GMT -5. The time now is 08:03 AM.