Pages2

Tuesday, March 15, 2011

Blocking Website without using any software


"The Hosts file contains the mappings of IP addresses to host names. This file is loaded into memory (cache) at startup, then Windows checks the Hosts file before it queries any DNS servers, which enables it to override addresses in the DNS. This prevents access to the listed sites by redirecting any connection attempts back to the local (your) machine. Another feature of the HOSTS file is its ability to block other applications from connecting to the Internet, providing the entry exists." - source

"There are several ways for blocking access to websites, such as installing a Parental Control software or using the built-in Windows 7 Parental Controls, or a Firefox plug-in. Another method for blocking websites is to edit the hosts file on your system, and add all the unwanted websites. The hosts file is a system file that is used to map hostnames to IP addresses, without any DNS resolution." - source

Anda boleh gunakan hosts file ini untuk menghalang ads, banners, cookies, counters, web bugs, porno site, facebook (jangan bagi anak2 main), ataupun daripada hijackes.

# Block Facebook
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 static.ak.fbcdn.net
127.0.0.1 www.static.ak.fbcdn.net
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.connect.facebook.com
127.0.0.1 www.static.ak.connect.facebook.com

Tapi bila anda nak berfacebook disable kan la...tambah # untuk setiap line. Dan tambahkan 2 line dibawah, bila mak bapak pakai, nak laju kan.... TAPI ini bukan penyelesaian mutlak! Bukan untuk mengoda, cuma nak faham hosts file tu berfungsi macam mane. Tapi kalau host file tu besar, 200K ke atas, maka, banyak RAM pakai, nak berat la mesin anda (Laptop/PC).

203.106.85.66 www.facebook.com
203.106.85.66 facebook.com

Rujuk sini boleh juga.

Dan sekarang ni dah nampak bebas dari adds yang macam best je... ada gambar rimau la, handphone la... sudah la... dok ada masa nak layan binatang tu... dan lain kali ada site yang aku dok kenan, aku edit hosts file dan update ke dalam folder C:\WINDOWS\SYSTEM32\DRIVERS\ETC.


Read more :

1. http://www.mvps.org/winhelp2002/hosts.htm

2. http://helpdeskgeek.com/how-to/block-websites-using-hosts-file/

3. http://cariblogger.com/how-to-block-facebook-using-hosts-file

No comments:

Post a Comment