1212user_choice_unlock_website = ""
1313user_confirm_choice = ""
1414
15- current_version = "1.0 "
15+ current_version = "1.1 "
1616
1717version_url = "https://raw.githubusercontent.com/Rabixx/updater/main/version.txt"
1818
@@ -42,6 +42,9 @@ def main(user_choice,user_choice_block_website,user_choice_unlock_website,win_pa
4242 os .system ('cls' )
4343 c = open (win_path ,"a" )
4444 print ("what website u want to block?" )
45+ print ()
46+ print ("to cancel hold CTRL + C in the same moment" )
47+ print ()
4548 user_choice_block_website = str (input (">>: " ))
4649 c .writelines ("0.0.0.0" + " " + user_choice_block_website + "\n " )
4750 c .close ()
@@ -53,11 +56,16 @@ def main(user_choice,user_choice_block_website,user_choice_unlock_website,win_pa
5356 print (f"[ERROR] { ex_1 } " )
5457 time .sleep (2 )
5558 os .system ('cls' )
59+ except KeyboardInterrupt :
60+ os .system ('cls' )
5661
5762 if user_choice == 2 :
5863 try :
5964 os .system ('cls' )
6065 print ("what website u want to unlock?" )
66+ print ()
67+ print ("to cancel hold CTRL + C in the same moment" )
68+ print ()
6169 user_choice_unlock_website = str (input (">>: " ))
6270 with open (win_path , 'r' ) as file :
6371 lines = file .readlines ()
@@ -76,6 +84,8 @@ def main(user_choice,user_choice_block_website,user_choice_unlock_website,win_pa
7684 print (f"[ERROR] { ex_2 } " )
7785 time .sleep (2 )
7886 os .system ('cls' )
87+ except KeyboardInterrupt :
88+ os .system ('cls' )
7989
8090 if user_choice == 3 :
8191 try :
@@ -96,10 +106,10 @@ def main(user_choice,user_choice_block_website,user_choice_unlock_website,win_pa
96106 if user_choice == 4 :
97107 try :
98108 os .system ('cls' )
99- print ("SimpleWebsiteBlocker" ,date .today ().year ,"copyrights" )
100- print ("this app is really simple websiteblocker that can be used" )
101- print ("without any time limits its free and under SimpleWebsiteBlocker license" )
102- print ("you can find more details under this link {}" .format ("https://github.com/Rabixx/SimpleWebsiteBlocker/" ))
109+ print ("> SimpleWebsiteBlocker" ,date .today ().year ,"copyrights" )
110+ print ("> this app is really simple websiteblocker that can be used" )
111+ print ("> without any time limits its free and under SimpleWebsiteBlocker license" )
112+ print ("> you can find more details under this link {}" .format ("https://github.com/Rabixx/SimpleWebsiteBlocker/" ))
103113 os .system ('pause' )
104114 os .system ('cls' )
105115 except Exception as ex_4 :
0 commit comments