Hi,
This script will block or unblock the specified website.
Input:
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
For Example:
hosts_path = "C:\Windows\System32\drivers\etc\hosts"
redirect = "127.0.0.1"
website_list =["www.yahoo.com","www.gmail.com"]
Remove_website =["www.youtube.com","www.facebook.com"]
Note: Should be run as system user
Comments