Blocking access to certain website using route

In case you happened to block certain site from being access from you pc/notebook/server or whatever..

let’s say.. it is a “”
let check the ip address of the site..

[root@nb-namran ~]# nslookup
Non-authoritative answer:

then to block it run

route add -host gw

will be routed to localhost (lo) interface instead

in windows would be

route add MASK

assumed is some ip in your network that not been used.
.. it will be gone after reboot,

but if want it to be permanently would be something like

route -p add MASK

in linux ..

you could either create a route file for each interface, e.g.,

and put entries in it like this in the file: via

or you can add route add commands to /etc/rc.local.

Related Post

2 Responses

  1. aemarx says:

    here Malaysian mirror:

    Unfortunately, there is no xubuntu alternate installaton cd..

    • HawkEYE says:

      Yep.. that why resort to foreign link instead.. 😎

      anyway , thanks.


Leave a Reply

Your email address will not be published. Required fields are marked *