🚫 macOS App Blocker Script Generator

Generate custom macOS scripts to block applications during specific times

What this does: This generates a bash script that will automatically block apps on macOS during specified times on school/work days when at specified IP addresses (locations). View instructions →

Need to create your school days list? School Day Generator →

Select the application you want to block
Choose scheduled blocking or manual on-demand scripts

Generated Script

📖 How to Use These Scripts

🕐 Scheduled Blocking Mode

+

🎮 Manual Control Mode

+

📝 Notes

  • These scripts require sudo/administrator privileges to run
  • The blocking works by continuously killing the app process - the app cannot be opened while blocking is active
  • Make sure you have the correct app name (it's case-sensitive)
  • Scheduled Blocking mode only occurs when all conditions are met: correct time, school day, and at specified IP address
Check if blocking is active:

To verify if an app is currently being blocked:

sudo launchctl list | grep com.block.[appname]

Replace [appname] with your app name (e.g., com.block.messages, com.block.safari). If you see output, blocking is active. No output means blocking is not running.

Check if checker is running:

To verify the checker daemon is running:

sudo launchctl list | grep com.check.[appname]

This should always show output if the system is installed correctly.

View logs (Scheduled Blocking only):

To see when blocking was enabled/disabled:

tail -f /var/log/[appname]_check.log

Replace [appname] with your app name (e.g., messages_check.log, safari_check.log). Logs only appear when blocking state changes.