Skip to content

A simple website blocker with GUI using Python. The code makes use of the hosts file to block certain websites.

License

Notifications You must be signed in to change notification settings

MDtyper/website-blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

"Website Silencer"

A python script to block certain websites using the hosts file.

First things first

To run the program, simply clone the repository and run the main.py file.

How to use?

Using the Tkinter library a simple GUI is shown and allows for the simple adding and removal of website links.

To "block" a website, insert the website inside the entry and press the Block button or simply press Enter. The website will be added to the hosts file and will be shown within the GUI. To "remove" a website, select the row within the GUI you want to remove and press the Unlock button or the "delete" key.

Gui

If want to block a certain amount of websites at the same time, you can now do so. Simply copy in the different urls you would like to block and paste them inside the second window. You can save certain lists of urls for different moments. E.g. you could save social media links if you regularly want to block the same list of social media urls. You can both add the urls to the blocked websites, or only block the typed urls in such removing the existing blocked urls. You can also change to redirection adress within the GUI. lastly if you want to remove everything from the blocked list, simply press "reset".

Gui1

Since I am a beginner, if you have any adviced or remarks on the code please let me know!

About

A simple website blocker with GUI using Python. The code makes use of the hosts file to block certain websites.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages