Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit d0829d6

Browse files
committed
fixed issues
1 parent 7e35c15 commit d0829d6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

projects/Website Blocker/website_blocker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
if platform.system() == "Windows":
44
pathToHosts=r"C:\Windows\System32\drivers\etc\hosts"
55
elif platform.system() == "Linux":
6-
pathToHosts=r"~\etc\hosts"
6+
pathToHosts=r"~/etc/hosts"
77

88
redirect="127.0.0.1"
99
websites=["https://www.sislovesme.com/","https://motherless.com/","https://xhamster.com/","https://www.xnxx.com/","https://www.xvideos.com/","https://www.pornhub.com/"]

projects/Website Blocker/website_unblocker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
if platform.system() == "Windows":
44
pathToHosts=r"C:\Windows\System32\drivers\etc\hosts"
55
elif platform.system() == "Linux":
6-
pathToHosts=r"~\etc\hosts"
6+
pathToHosts=r"~/etc/hosts"
77

8-
pathToHosts=r"C:\Windows\System32\drivers\etc\hosts"
98
websites=["https://www.sislovesme.com/","https://motherless.com/","https://xhamster.com/","https://www.xnxx.com/","https://www.xvideos.com/","https://www.pornhub.com/"]
109

1110
with open(pathToHosts,'r+') as file:

0 commit comments

Comments
 (0)