Website Blocker
The objective of Python website blocker is to block some certain websites which can distract the user during the specified amount of time. In this,…
The objective of Python website blocker is to block some certain websites which can distract the user during the specified amount of time. In this,…
The objective of Python website blocker is to block some certain websites which can distract the user during the specified amount of time. In this, we will block the access to the list of some particular websites during the working hours so that the user can only access those websites during the free time only. The working time in this python application is considered from 9 AM to 5 PM. The time period except that time will be considered as free time.
To block the access to a specific website on the computer, we need to configure the hosts file.
The hosts file is a local file which was used to map hostnames to IP addresses in the old days. Although the DNS service is used nowadays to map the hostnames to the IP addresses, the host file is still very complex and can be used to configure the mapping of the IP addresses locally.
The location of the hosts file varies from operating system to operating system.

We need to know the following python modules to build the python website blocker.
No — it modifies the operating system hosts file, which is not accessible in the browser sandbox.