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! |
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. |
Block the IP with IPtables and redirect it's DNS to localhost with hosts file (incase they change IP).
|
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. |
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. |