Distraction Blocker List
Make the lines to paste in your hosts file so distracting sites will not open while you study.
How it works
Paste the sites you want to block, one per line or separated by commas. The tool cleans each one to a plain domain and writes lines for your hosts file, pointing them to 127.0.0.1 or 0.0.0.0, with the www version too. Add them to your hosts file with admin rights to block those sites on that computer.
Worked example
https://www.instagram.com/ becomes 127.0.0.1 instagram.com and 127.0.0.1 www.instagram.com.
Good to know
- On Windows the file is C:\Windows\System32\drivers\etc\hosts. On Mac and Linux it is /etc/hosts.
- Remove the lines to unblock. Browsers may need a restart or a DNS flush.
- It works on one computer, not on your phone. Use an app blocker on the phone.
Common questions
- Is it safe to edit the hosts file?
- Yes if you only add lines. Keep a backup.
- Why 0.0.0.0 instead of 127.0.0.1?
- Both work. 0.0.0.0 fails faster on some systems.
- Will it block apps?
- Only if the app uses that domain.
More in Study & Exams.
Give it your subjects, chapters left and exam dates. Get a day by day plan with revision days kept just before each exam.
Study & ExamsTOP PICKFocus TimerTOP PICKA Pomodoro timer with presets, long breaks every few sessions, a task name and a daily focus total. Keeps running while you switch tabs.
Lecture Time CalculatorPaste video lengths from a playlist and see the total time at 1.5x or 2x.
OPEN →