How to block domain in ubuntu and mint linux @wikihard |
/etc/hosts is a very important file to control websites, also to do other things ( I'm talking about DNS ) but in this article we talk only about how to ban some sites.
1. How to block and ban domains in Ubuntu linux :
First you need to open the file "/etc/hosts/" by typing the this command on the terminal :
after that add the following line:
here make sure to change the value of "domain.com" and put the domain that you want to block it.
gedit /etc/hosts
after that add the following line:
127.0.0.1 domain.com
here make sure to change the value of "domain.com" and put the domain that you want to block it.
how to block domain in ubuntu linux @wikihard |
Now it done, if you try to open this domain, this message will display " Failed to Connect " .
2. How to block and ban domains in Mint linux :
to block domain name in Mint linux, just follow this steps :
Menu -> Adminstration -> Domain Blocker
Add your domain and Press Block
This picture will explain everything :
How to ban domain or website in mint linux @wikihard |
Read more : How to install Kali Linux on USB drive
No comments:
Post a Comment