effective ba sa inyo ang magblock ug sites sa /etc/hosts ?
yes of course pero wala lang pod ko nigamit ana kay daghan man alternative to block sites..
giunsa man nimo? nag-add man ko ug line, pero makaacess man gihapon.
ani akong pag-add.. unsa-on man jud diay?
216.34.250.11 www.istorya.net
tanawa akoa: just use sudo gedit /etc/hosts
192.168.1.10 ubuntu-sever # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
::1 ubuntu-sever localhost6.localdomain6 localhost6
127.0.1.1 ubuntu-sever
127.0.0.1 www.istorya.net <--------- mao na akong gi add
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
nganong 127.. man nga localhost man na nga ipstack?127.0.0.1 Yahoo! <--------- mao na akong gi add
nablock jud ang yahoo?
sulayi na(backup the orig hosts) sa imong machine tapos gamita pod ang google chrome or any browser kung naa ba epek.
127.0.0.1(space)www.istorya.net ---- 100% working sa akoa even sa google chrome. of course you can use privoxy kung di mada..
okay nigana na![]()
thanks.
created a script for it just to test.. http://rapidshare.com/files/429001135/test
way sed![]()
if you want a script(actually a list of sites to block) pwede ra nimo gamiton ani nga command
sudo mv /etc/hosts /etc/hosts.orig
sudo wget -c http://blah/hosts.txt(kung asa na nimo nabutang) -O /etc/hosts
you have the script anyway... :P
Last edited by turbomark; 11-05-2010 at 04:44 PM. Reason: okis na man diay
Similar Threads |
|