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!

youtub…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Want to block websites or test local domains without touching your DNS?." Very Lazy Tech | Sciencx - Monday April 14, 2025, https://www.scien.cx/2025/04/14/want-to-block-websites-or-test-local-domains-without-touching-your-dns/
HARVARD
Very Lazy Tech | Sciencx Monday April 14, 2025 » Want to block websites or test local domains without touching your DNS?., viewed ,<https://www.scien.cx/2025/04/14/want-to-block-websites-or-test-local-domains-without-touching-your-dns/>
VANCOUVER
Very Lazy Tech | Sciencx - » Want to block websites or test local domains without touching your DNS?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/04/14/want-to-block-websites-or-test-local-domains-without-touching-your-dns/
CHICAGO
" » Want to block websites or test local domains without touching your DNS?." Very Lazy Tech | Sciencx - Accessed . https://www.scien.cx/2025/04/14/want-to-block-websites-or-test-local-domains-without-touching-your-dns/
IEEE
" » Want to block websites or test local domains without touching your DNS?." Very Lazy Tech | Sciencx [Online]. Available: https://www.scien.cx/2025/04/14/want-to-block-websites-or-test-local-domains-without-touching-your-dns/. [Accessed: ]
rf:citation
» Want to block websites or test local domains without touching your DNS? | Very Lazy Tech | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.