(this is a repost of #29648 ... but it's more valid now :) )
Is some specific website, like Twitter, bringing you joy or is it bringing you the opposite? Do you have a hard time stopping? Here's a quick tutorial recommended by 9 out 10 dentists.
First rule: Never run random bash scripts you find online without reading the scripts yourself!
Blocking with /etc/hostsBlocking with /etc/hosts
If you understand the first rule, then read, copypaste and run following script in your terminal.
On Linux or MacOS
sudo bash -c "cat >> /etc/hosts << EOF
0.0.0.0 twitter.com
0.0.0.0 reddit.com
EOF
"And that's it. This should apply the rule immediately.
If you want to check how does your /etc/hosts look like, then just run nano /etc/hosts.
On Windows
echo 0.0.0.0 twitter.com >> %WINDIR%\System32\Drivers\Etc\Hosts
echo 0.0.0.0 reddit.com >> %WINDIR%\System32\Drivers\Etc\HostsBlocking with pi-holeBlocking with pi-hole
Even better option is if you have pi-hole set up on your network to proxy all your DNS requests. pi-hole is also available on Umbrel or Citadel.
Simple steps:
- Sign in to your your pi-hole admin interface, e.g. https://pi.hole/admin/index.php
- Navigate to Blacklist
- Add
twitter.comin the Domain input box and click on Add to Blacklist - You are all set.
i notice twitter has become addictive even for me and my friends consuming our creative hours. thanks, i will be aspecting a video tutorial from you showing other methods.
why not deleted it and done? 👀
It's a website (when used on computer), so it pulls you back since the energy barrier is so low.
Thanks brow
Thanks,this was of great help
Thanks for the information!