{"id":407,"date":"2018-10-04T05:42:22","date_gmt":"2018-10-04T05:42:22","guid":{"rendered":"https:\/\/www.filerepairtools.com\/tips\/?p=407"},"modified":"2026-03-07T05:08:12","modified_gmt":"2026-03-07T05:08:12","slug":"open-and-edit-hosts-files-in-windows-7-8-10","status":"publish","type":"post","link":"https:\/\/filerepairtools.com\/tips\/open-and-edit-hosts-files-in-windows-7-8-10\/","title":{"rendered":"Open and Edit Hosts Files in Windows 7\/ 8\/ 10"},"content":{"rendered":"<p>Hosts files are generally the type of files that deals with networking. If you have a problem in accessing a particular website or webpage it might be because it is blocked in hosts file. Hosts File are easy to find and edit, however sometime users can\u2019t find and edit Hosts files in windows 10\/ 8 and earlier versions. Here we will learn how to edit a Hosts File<\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/filerepairtools.com\/tips\/open-and-edit-hosts-files-in-windows-7-8-10\/#How_to_Edit_Hosts_File_in_Windows_8_10\" >How to Edit Hosts File in Windows 8\/ 10<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/filerepairtools.com\/tips\/open-and-edit-hosts-files-in-windows-7-8-10\/#Open_Hosts_File_in_Windows_7\" >Open Hosts File in Windows 7<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<p>Before editing, one must first learn how to find the host\u2019s file or know where these files are stored by Windows operating system. To edit and find these files the user should have administrator rights of the computer. The syntax for hosts file is nearly same for all platforms i.e. Windows, linux, Mac, however proper attention should be taken while editing a hosts file<\/p>\n<p>Hosts File Syntax is of three parts of which the first one is location to redirect address to, the second is address which user want to redirect and third is comment prefix by #.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-410\" src=\"https:\/\/www.filerepairtools.com\/tips\/wp-content\/uploads\/2018\/07\/edit-host-file-in-windows-7.jpg\" alt=\"edit host file in windows 7\" width=\"521\" height=\"461\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Edit_Hosts_File_in_Windows_8_10\"><\/span>How to Edit Hosts File in Windows 8\/ 10<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Microsoft comes with a different interface in windows 8 and it is advanced in windows 10. Applications and programs installed in windows 8 or 10 generally appears on the home screen and requires additional effort<\/p>\n<ul>\n<li>Open your system and then press windows icon in keyboard to view application in windows 8<\/li>\n<li>Now search for notepad and right click on it<\/li>\n<li>Select the option \u2018Run as Administrator\u2019, a dialog box will appear click yes<\/li>\n<li>Now find the Hosts file in your system<\/li>\n<li>The path of hosts file is generally <strong><em>c:\\windows\\system32\\drivers\\etc\\hosts <\/em><\/strong>in windows 8 and 10<\/li>\n<li>Open the file and edit it according to your need<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Open_Hosts_File_in_Windows_7\"><\/span>Open Hosts File in Windows 7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>Go to Start menu and type run<\/li>\n<li>The run dialog box will appear<\/li>\n<li>Enter the following command in run window <strong><em>notepad<\/em><\/strong> <strong><em>c:\\windows\\system32\\drivers\\etc\\hosts <\/em><\/strong>and click OK<\/li>\n<li>Open a sample host file and edit it<\/li>\n<li>As an example try blocking a website in your system type 0.0.0.0 and website url<\/li>\n<li>Save the file<\/li>\n<li>Now try accessing the website of which you have type the address<\/li>\n<li>The website will not open<\/li>\n<\/ul>\n<p>In this way you can find, open and edit hosts file in Windows 7\/ 8 and 10.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hosts files are generally the type of files that deals with networking. If you have a problem in accessing a particular website or webpage it might be because it is blocked in hosts file. Hosts File are easy to find and edit, however sometime users can\u2019t find and edit Hosts files in windows 10\/ 8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2219,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/posts\/407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":1,"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"predecessor-version":[{"id":7448,"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/posts\/407\/revisions\/7448"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/filerepairtools.com\/tips\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}