This paper presents a useful application to protect computer security by blocking access to certain websites by entering its name in the hosts file. The application allows performing the following operations: check / change read-only attribute of the file hosts, adding to the hosts file of the URL you want to block, hosts file contents displayed, change it and overwrite the modified file.