Teman-teman berhubung kali ini saya tidak punya bahan untuk diposting di blog. Maka dengan terpaksa kali ini saya cuma mau ngasih artikel tutorial basi. Lha bagaimana lagi dari pada blog ini tidak terupdate sama sekali.. hehe.. Pada tutorial simpel ini akan saya jelaskan mengenai bagaimana cara memblokir alamat situs atau website di windows dengan menambahkan aturan pada file "hosts".
Kadang memblokir situs diperlukan, misalnya anda punya anak kecil yang sudah bisa internetan melalui PC atau laptop. Tentu anda tidak ingin anak anda membuka situs-situs yang berbahaya bukan? Nah, sebenarnya di windows sudah disediakan sebuah file hosts sederhana yang bisa di edit agar tidak bisa membuka situs-situs tertentu.
Oke langsung saja tutorialnya, pertama saya sarankan anda mendownload text editor notepad++. Sebenarnya bisa saja kita mengedit file hosts tersebut dengan notepad bawaan windows namun saya kurang menyukainya. File hosts tersebut dapat anda temukan di “C:\Windows\System32\drivers\etc”. File hosts ini bersifat "read only" oleh karena itu sebelum di edit silahkan klik kanan>> properties hilangkan tanda centang atribut "read only". Kemudian masih pada properties, pada tab "security" pastikan anda punya hak minimal sebagai administrator dan mempunyai "permission: full control".
Jika sudah mari kita buka file ini dengan notepad++. klik kanan>> edit with notepad++. Anda akan melihat teks kira-kira seperti di bawah ini:
# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost
Untuk memblokir situs tertentu anda bisa menambahkan localhost “127.0.0.1″ di barisan paling bawah diikuti alamat website atau IP address. Misalnya saya ingin blokir face book dan twitter maka akan saya tambahkan "127.0.0.1 facebook.com www.facebook.com" dan "127.0.0.1 twitter.com www.twitter.com". Saya menggunakan alamat dengan prefix "www" dan non www supaya lebih optimal. Stelah diedit/ditambahkan kira-kira akan seperti ini penampakannya:
# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost # blokir situs | www.nicois.me 127.0.0.1 facebook.com www.facebook.com 127.0.0.1 twitter.com www.twitter.com
Jika sudah anda dapat menyimpan file hosts tersebut. Jika anda tidak bisa menyimpan file ini kemungkinan karena anda tidak punya akses full control untuk mengeditnya. Silahkan utak-atik permission dibagian properties> security file ini. Jika berhasil tersimpan, silahkan restart koneksi internet anda dan buka alamat website yang diblokir tersebut apakah berhasil diblokir atau tidak.
Comments
Post a Comment