DEV Community

Discussion on: How to build website blocker in Python

Collapse
 
yasthir01 profile image
Yasthir Dhewnarian

How exactly do you deactivate it? The script worked, and yes the websites are now blocked... But how do I bring them back without waiting until the time expires?

Collapse
 
kalebu profile image
Jordan Kalebu

You should change hijack the script manually by changing the working hours in the block_websites function to a range which outside of your current time and then the script will think it's resting time, will go and remove the block websites in the host file.