DEV Community

Very Lazy Tech
Very Lazy Tech

Posted on

1 1 1 2 2

Want to block websites or test local domains without touching your DNS?

Want to block websites or test local domains without touching your DNS?

In this quick Ubuntu tip, I’ll show you how to edit the /etc/hosts file to block sites like Facebook or fake domains for development β€” all in under 1 minute!

πŸ”— Stay tuned for more hacking and cybersecurity content! Don't forget to LIKE, SHARE, and SUBSCRIBE for more videos.

// VeryLazyTech Social //
πŸ”— My Shop: https://www.shop.verylazytech.com
πŸ“– Medium: https://medium.verylazytech.com/
πŸ™ GitHub: https://github.com/verylazytech
🌐 Website: https://www.verylazytech.com
🐦 X: https://x.com/verylazytech

Top comments (0)

Jetbrains Survey

Calling all developers!

Participate in the Developer Ecosystem Survey 2025 and get the chance to win a MacBook Pro, an iPhone 16, or other exciting prizes. Contribute to our research on the development landscape.

Take the survey

πŸ‘‹ Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay