Skip to content

A simple Python script using Tkinter to block and unblock websites by modifying the hosts file.

Notifications You must be signed in to change notification settings

pachehitesh/Website-Blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Website-Blocker

A simple Python script using Tkinter to block and unblock websites by modifying the hosts file.

Description

This script allows users to block or unblock websites by manipulating the hosts file on their system. It provides a GUI built with Tkinter for easy interaction. Users can input the websites they want to block or unblock, and the script handles the rest.

Features

  • Block or unblock multiple websites at once.
  • Simple GUI for easy interaction.
  • Provides feedback on whether the website has been successfully blocked or unblocked.

How to Use

  1. Run the script.
  2. Enter the websites you want to block or unblock, separated by commas.
  3. Click the 'Block' button to block the entered websites or the 'Unblock' button to unblock them.
  4. You'll receive feedback indicating whether the action was successful.
  5. Close the window when done.

Requirements

  • Python 3.x
  • Tkinter (usually comes pre-installed with Python)

Note

  • Ensure you run the script with appropriate permissions to modify system files (e.g., hosts file).
  • Use caution when blocking or unblocking websites, as it may affect system behavior.

Feel free to contribute or suggest improvements!

About

A simple Python script using Tkinter to block and unblock websites by modifying the hosts file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages