Instead of using third-party applications to blocks certain website, we can develop our own custom application which will block websites of our choice and developing a website blocker in python is not so difficult too. That’s what we going to do- develop a python script which will block the website we want.
Every system have host file whether it is Mac, Windows or Linux.
Host file in Mac and Linux : /etc/hosts
Host file in Windows: C:\Windows\System32\drivers\etc