This script will block or unblock the specified website.
hosts_path - change hosts path according to your OS
redirect - localhost's IP
website_list - Mention the websites that you want to block
Remove_website - Mention the websites that you want to Unblock
hosts_path = "C:\Windows\System32\drivers\etc\hosts"
redirect = "127.0.0.1"
Note: Should be run as system user