We can use the host files to block particular hostnames which we don’t want to use in system.
Hosts file: this is a file from which we can set IP address for a particular domain in our local system. We can overrule the Authoritive DNS from this file.
You can access the hosts file with below steps:
After that try to access your domain name in your browser.
Hosts file: this is a file from which we can set IP address for a particular domain in our local system. We can overrule the Authoritive DNS from this file.
You can access the hosts file with below steps:
- Hit the Windows + R key.
- You have to add below command in Run:
Code:
notepad c:\windows\system32\drivers\etc\hosts
- A notepad file will be open you can edit this file according to your need. You can add domain name which you want to block.
- Now click on Save button.
After that try to access your domain name in your browser.