Skip to content

desantesway/AppBlocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ BlockApps

BlockApps is a powerful Python script that blocks apps and websites based on a customizable schedule.
It works on Windows and MacOS, and is designed to be very hard to bypass β€” making it an effective tool for staying focused.

πŸ”’ Built to help people stay productive during studies and work, especially after being disappointed by the limitations (and paywalls) of existing solutions.


πŸš€ Features

  • πŸ–₯️ Cross-platform support: Windows & Linux
  • πŸ• Schedule-based blocking system (set hours/days)
  • 🌐 Website blocking (via hosts file manipulation)
  • πŸ“¦ App blocking (based on process name)
  • πŸ’ͺ Designed to be resilient against tampering
  • 🧠 Lightweight and no GUI β€” focus on simplicity and control

πŸ’‘ Why I Made This

I created BlockApps because most existing focus tools are either:

  • Behind a paywall πŸ’Έ
  • Easy to bypass 🫠

This tool helped me focus intensely during study and work sessions, and I hope it can help others too.


πŸ› οΈ Requirements

  • Python 3.7+
  • Administrator/root privileges (required for blocking functionality)

βš™οΈ How It Works

For websites: Edits the system hosts file to redirect specified URLs to 127.0.0.1 For apps: Continuously checks for running processes and kills any that are on the blocklist Uses a user-defined schedule (examples in presets.py)


πŸ§ͺ Usage

  1. Clone the repository:
git clone https://github.com/yourusername/BlockApps.git
cd BlockApps
  1. Edit presets.py to customize you schedule

  2. Run the script with administrator privileges

πŸ‘€ Recommended

Use pyarmor to crypt the python files and make it impossible to edit the presets.py or any file


⭐️ Star the repo if you find it helpful!

About

A python script that blocks apps and websites given a schedule

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages