This content originally appeared on DEV Community and was authored by Very Lazy Tech
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
This content originally appeared on DEV Community and was authored by Very Lazy Tech

Very Lazy Tech | Sciencx (2025-04-14T07:32:51+00:00) Want to block websites or test local domains without touching your DNS?. Retrieved from https://www.scien.cx/2025/04/14/want-to-block-websites-or-test-local-domains-without-touching-your-dns/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.