What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-01 12:56:25
website blocker python
#Import libraries import time from datetime import datetime as dt #Windows host file path hostsPath=r"C:\Windows\System32\drivers\etc\hosts" redirect="127.0.0.1" #Add the website you want to block, in this list websites=["www.yout... Add solution
Best helpers
Hwsolutions
+5
SYJ
+5
KMC
+5
Jonjie
+5
Frank Jaeger
+5
Paul Knight
+5
Required
+5
Saylestyler
+5
Deverejones
+5