A comprehensive, multi-layered blocking system for Windows and macOS that makes playing League of Legends extremely difficult.
- ✅ Windows (PowerShell scripts)
- ✅ macOS (Bash scripts)
This blocker implements multiple layers of protection:
- Network Blocking: Blocks all League of Legends and Riot Games domains via hosts file
- Process Killer: A background service that continuously monitors and kills League processes
- File Permissions: Makes League installation directories non-executable (or removes execute permissions)
- Auto-Start: Guardian service runs on system boot
- Cleanup: Removes existing League installations
- Browser Content Blocking (optional): Hides League content on YouTube, Twitch, Reddit, Twitter, and other websites
WARNING: This will immediately block League of Legends. Make sure you're ready.
- Right-click on
block_league.ps1 - Select "Run with PowerShell" (as Administrator)
- If you get an execution policy error, run this first in PowerShell (as Admin):
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Alternatively, from an Administrator PowerShell:
.\block_league.ps1chmod +x block_league.sh
sudo ./block_league.shYou'll need to enter your admin password.
- All Riot Games domains (riotgames.com, riot.com, etc.)
- All League of Legends domains (all regions: NA, EUW, EUNE, KR, etc.)
- Update and patch servers
- Authentication servers
- API and support sites
40+ domains blocked in total
The guardian continuously kills these processes every 2 seconds:
Windows:
- League.exe
- LeagueClient.exe
- RiotClientServices.exe
- RiotClientUx.exe
macOS:
- League
- LeagueClient
- RiotClient
- Riot Client
- LeagueOfLegends
Moderately difficult - requires technical knowledge but not impossible:
- Windows: Need to use Task Scheduler, edit hosts file, understand system services
- macOS: Need to use Terminal, sudo commands, understand LaunchDaemons
This creates enough friction to make you think twice, but won't brick your system.
If you really want to undo this (think carefully):
Right-click on uninstall_block.ps1 and select "Run with PowerShell" (as Administrator)
Or manually:
- Open Task Scheduler
- Delete the task named
QuitLoL_Guardian - Open Notepad as Administrator
- Open
C:\Windows\System32\drivers\etc\hosts - Delete the section between
# QUITLOL_BLOCK_STARTand# QUITLOL_BLOCK_END - Save the file
chmod +x uninstall_block.sh
sudo ./uninstall_block.shOr manually:
# Stop the daemon
sudo launchctl unload /Library/LaunchDaemons/com.quitlol.guardian.plist
# Remove daemon files
sudo rm /Library/LaunchDaemons/com.quitlol.guardian.plist
sudo rm /usr/local/bin/quitlol_guardian.sh
# Edit hosts file and remove QUITLOL_BLOCK section
sudo nano /etc/hostsC:\Windows\System32\drivers\etc\hosts- Modified with domain blocksC:\ProgramData\QuitLoL\guardian.ps1- Process killer script- Task Scheduler:
QuitLoL_Guardian- Scheduled task C:\ProgramData\QuitLoL\hosts.backup.*- Backup files
/etc/hosts- Modified with domain blocks/Library/LaunchDaemons/com.quitlol.guardian.plist- Daemon config/usr/local/bin/quitlol_guardian.sh- Process killer script/var/quitlol_backup/- Backup directory
Want to block League content on YouTube, Twitch, Reddit, and other sites? We've got you covered with two options:
A dedicated browser extension that actively hides League content across the web.
Features:
- Blocks League videos on YouTube
- Hides Twitch streams playing League
- Filters Reddit posts from r/leagueoflegends
- Removes League tweets on Twitter/X
- Redirects direct visits to League sites
- Works on Chrome, Edge, Brave, and Firefox
Installation: See browser-extension/README.md for detailed instructions.
Quick start:
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
browser-extensionfolder - Done!
If you already use uBlock Origin ad blocker, you can import our filter list.
Installation:
- Install uBlock Origin
- Open uBlock Origin dashboard (click icon → settings gear)
- Go to "Filter lists" tab
- Scroll to bottom, click "Import"
- Paste the raw GitHub URL of
ublock-filters.txtor paste the file contents - Click "Apply changes"
The filter list blocks 40+ League/Riot sites and hides League content on YouTube, Twitch, Reddit, and Twitter.
File: ublock-filters.txt
| Feature | Browser Extension | uBlock Filters |
|---|---|---|
| Ease of use | Medium | Easy |
| Effectiveness | High | Medium |
| Performance impact | Low-Medium | Very Low |
| Customization | High | Medium |
| Works on mobile | No | No |
Recommendation: Use both for maximum protection! The extension catches dynamic content that filters might miss.
This tool is for people who genuinely want to quit League of Legends but struggle with impulse control. It creates enough friction to give you time to reconsider, without being truly irreversible.
If you're trying to disable this blocker, ask yourself: Why did you install it?
- Uses PowerShell scripts with execution policy bypass
- Creates a Windows Scheduled Task that runs at startup with SYSTEM privileges
- Modifies ACLs to deny execute permissions on League executables
- Runs continuously in the background with auto-restart on failure
- Uses Bash scripts with root privileges
- Creates a LaunchDaemon that runs at boot
- Uses chmod to remove execute permissions
- Runs as a persistent background process
"Cannot be loaded because running scripts is disabled":
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser"Access Denied": Right-click PowerShell and select "Run as Administrator"
Task not running: Open Task Scheduler and check the QuitLoL_Guardian task status
"Permission denied" errors: Run with sudo
Daemon not starting: Check /tmp/quitlol_guardian.err for errors
Already installed League after blocking: The daemon will continuously kill it and make the app non-executable
Feel free to submit issues or pull requests if you want to improve the blocker or add support for other platforms (Linux?).
If this helped you quit League, give it a star! Help others break free.
You've made the right choice. Stay strong.
Remember: The game is designed to be addictive. Breaking free takes courage.