{"id":3138,"date":"2026-10-19T22:58:53","date_gmt":"2026-10-19T20:58:53","guid":{"rendered":"https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/"},"modified":"2026-10-19T22:58:53","modified_gmt":"2026-10-19T20:58:53","slug":"hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe","status":"publish","type":"dh_kb_article","link":"https:\/\/www.drechthosting.nl\/en\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/","title":{"rendered":"How do I edit the hosts file, and why would I do this?"},"content":{"rendered":"<\/p>\n<p>The <strong>hostfile<\/strong> is a system file that controls the translation of domain names to IP addresses. It can be customized locally on your computer to point specific domains to certain IP addresses, which is useful for for example blocking websites, testing a new website or redirecting traffic. Editing the host file can be useful for developers, network administrators or for solving problems with website access.<\/p>\n<\/p>\n<p><strong>Pay attention<\/strong>: Editing the host file must be done carefully, as an error may affect the operation of your network or internet connection.<\/p>\n<\/p>\n<h5 class=\"wp-block-heading\">Why are you adjusting the hostfile?<\/h5>\n<\/p>\n<p>There are several reasons why you would like to customize the host file:<\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Test website<\/strong>: You can temporarily redirect a domain to another IP address, for example to test a website on a local server before it goes live.<\/li>\n<li><strong>Blocking websites<\/strong>: You can block access to certain websites by pointing the IP address to an unreachable location (such as 127.0.0.1).<\/li>\n<li><strong>Traffic diversion<\/strong>: It can be used to redirect traffic to another server for load balancing or other network settings.<\/li>\n<li><strong>Detaching DNS problems<\/strong>: Sometimes the host file can help to bypass DNS problems by correctly setting the domain names.<\/li>\n<\/ul>\n<h5 class=\"wp-block-heading\">How to edit the host file?<\/h5>\n<\/p>\n<h4 class=\"wp-block-heading\">Windows<\/h4>\n<\/p>\n<p><strong>Step 1: Open Block as Administrator<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Click on <strong>Start<\/strong>-button, type <strong>Notebook<\/strong> in the search field, right-click on Block and choose <strong>Run as administrator<\/strong>This is necessary to access the host file.<\/li>\n<\/ul>\n<p><strong>Step 2: Open the host file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Click in Notebook on <strong>Stock<\/strong> &gt; <strong>Open<\/strong>.<\/li>\n<li>Navigate to next location:<br \/><code>C:\\Windows\\System32\\drivers\\etc\\hosts<\/code><\/li>\n<li>Make sure to set the file type option to <strong>All Files<\/strong> to make the file visible.<\/li>\n<\/ul>\n<p><strong>Step 3: Edit the file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>You can now add or edit lines. Each line has the format:<br \/><code>IP address domain name<\/code><br \/>For example, to redirect a website to your local machine:<br \/><code>127.0.0.1 www.example.com<\/code><\/li>\n<\/ul>\n<p><strong>Step 4: Save the file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>After making the desired changes, save the file by <strong>Stock<\/strong> &gt; <strong>Save<\/strong> to be chosen.<\/li>\n<\/ul>\n<p><strong>Step 5: Flush DNS cache (optional)<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>To make sure the changes have a direct effect, you can delete the DNS cache. Open the command prompt as administrator and enter the following command:BashCode copy<code>ipconfig \/flushdns<\/code><\/li>\n<\/ul>\n<h4 class=\"wp-block-heading\">macOS<\/h4>\n<\/p>\n<p><strong>Step 1: Open the Terminal<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Programma&#8217;s<\/strong> &gt; <strong>Hulpprogramma&#8217;s<\/strong> &gt; <strong>Terminal<\/strong>.<\/li>\n<\/ul>\n<p><strong>Step 2: Open the host file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Enter the following command to open the host file with a text editor (e.g. nano):<code>sudo nano \/etc\/hosts<\/code><\/li>\n<li>Enter your administrator password when requested.<\/li>\n<\/ul>\n<p><strong>Step 3: Edit the file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Add the desired lines, such as:Copy Code<code>127.0.0.1 www.example.com<\/code><\/li>\n<\/ul>\n<p><strong>Step 4: Save the file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Press <strong>Ctrl + O<\/strong> to save the file and <strong>Ctrl + X<\/strong> to leave nano.<\/li>\n<\/ul>\n<p><strong>Step 5: Flush the DNS cache<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>To apply the changes, enter the following command:Copy Code<code>sudo killall -HUP mDNSR Sponder<\/code><\/li>\n<\/ul>\n<h4 class=\"wp-block-heading\">Linux<\/h4>\n<\/p>\n<p><strong>Step 1: Open the Terminal<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Open the <strong>Terminal<\/strong> on your Linux system.<\/li>\n<\/ul>\n<p><strong>Step 2: Open the host file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Use a text editor like nano to edit the host file:<code>sudo nano \/etc\/hosts<\/code><\/li>\n<\/ul>\n<p><strong>Step 3: Edit the file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Add the lines you want to change: Copy Code<code>127.0.0.1 www.example.com<\/code><\/li>\n<\/ul>\n<p><strong>Step 4: Save the file<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>Press <strong>Ctrl + O<\/strong> to save the file and <strong>Ctrl + X<\/strong> to leave the editor.<\/li>\n<\/ul>\n<p><strong>Step 5: Flush the DNS cache<\/strong><\/p>\n<\/p>\n<ul class=\"wp-block-list\">\n<li>To apply the changes, enter the following command:Copy Code<code>sudo systemctl restart network manager<\/code><\/li>\n<\/ul>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n<h3 class=\"wp-block-heading\">Important tips:<\/h3>\n<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Back up<\/strong>: It is always good to back up your host file before making changes so that you can fix it if something goes wrong.<\/li>\n<li><strong>Note the syntax<\/strong>: Make sure to use the correct syntax when adding IP addresses and domain names to avoid errors.<\/li>\n<li><strong>Test after adjustment<\/strong>: After adjusting the host file, check whether the desired changes are working correctly, for example by opening a website in your browser or using <code>ping<\/code> testing the domain.<\/li>\n<\/ul>\n<p>By adjusting the host file, you can control how certain domains are handled on your computer. It is a powerful tool, but it should be used with caution to avoid accidental disruption of network settings.<\/p>\n<\/p>\n<p>Do you need help adjusting your host file or do you have other questions? Please feel free to contact us!<\/p><\/p>","protected":false},"excerpt":{"rendered":"<p>Het hostbestand is een systeembestand dat de vertaling van domeinnamen naar IP-adressen regelt. Het kan lokaal op je computer worden aangepast om specifieke domeinen naar bepaalde IP-adressen te laten wijzen, wat handig\u2026<\/p>","protected":false},"featured_media":258,"template":"","meta":{"dh_seo_title":"Je hosts-bestand aanpassen voor een test | Drechthosting","dh_seo_title_en":"Editing your hosts file for testing | Drechthosting","dh_seo_description":"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.","dh_seo_description_en":"Use a hosts-file change to test a website locally. Learn why it affects your own device only and restore the normal setting after checking the site.","dh_kb_title_en":"How do I edit the hosts file, and why would I do this?","dh_kb_content_en":"<p><\/p>\n<p>The <strong>hostfile<\/strong> is a system file that controls the translation of domain names to IP addresses. It can be customized locally on your computer to point specific domains to certain IP addresses, which is useful for for example blocking websites, testing a new website or redirecting traffic. Editing the host file can be useful for developers, network administrators or for solving problems with website access.<\/p>\n<p><\/p>\n<p><strong>Pay attention<\/strong>: Editing the host file must be done carefully, as an error may affect the operation of your network or internet connection.<\/p>\n<p><\/p>\n<h5 class=\"wp-block-heading\">Why are you adjusting the hostfile?<\/h5>\n<p><\/p>\n<p>There are several reasons why you would like to customize the host file:<\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Test website<\/strong>: You can temporarily redirect a domain to another IP address, for example to test a website on a local server before it goes live.<\/li>\n\n<li><strong>Blocking websites<\/strong>: You can block access to certain websites by pointing the IP address to an unreachable location (such as 127.0.0.1).<\/li>\n\n<li><strong>Traffic diversion<\/strong>: It can be used to redirect traffic to another server for load balancing or other network settings.<\/li>\n\n<li><strong>Detaching DNS problems<\/strong>: Sometimes the host file can help to bypass DNS problems by correctly setting the domain names.<\/li>\n<\/ul>\n<p><\/p>\n<h5 class=\"wp-block-heading\">How to edit the host file?<\/h5>\n<p><\/p>\n<h4 class=\"wp-block-heading\">Windows<\/h4>\n<p><\/p>\n<p><strong>Step 1: Open Block as Administrator<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Click on <strong>Start<\/strong>-button, type <strong>Notebook<\/strong> in the search field, right-click on Block and choose <strong>Run as administrator<\/strong>This is necessary to access the host file.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 2: Open the host file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Click in Notebook on <strong>Stock<\/strong> &gt; <strong>Open<\/strong>.<\/li>\n\n<li>Navigate to next location:<br><code>C:WindowsSystem32driversetchosts<\/code><\/li>\n\n<li>Make sure to set the file type option to <strong>All Files<\/strong> to make the file visible.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 3: Edit the file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>You can now add or edit lines. Each line has the format:<br><code>IP address domain name<\/code><br>For example, to redirect a website to your local machine:<br><code>127.0.0.1 www.example.com<\/code><\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 4: Save the file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>After making the desired changes, save the file by <strong>Stock<\/strong> &gt; <strong>Save<\/strong> to be chosen.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 5: Flush DNS cache (optional)<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>To make sure the changes have a direct effect, you can delete the DNS cache. Open the command prompt as administrator and enter the following command:BashCode copy<code>ipconfig \/flushdns<\/code><\/li>\n<\/ul>\n<p><\/p>\n<h4 class=\"wp-block-heading\">macOS<\/h4>\n<p><\/p>\n<p><strong>Step 1: Open the Terminal<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Programmes<\/strong> &gt; <strong>Tools<\/strong> &gt; <strong>Terminal<\/strong>.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 2: Open the host file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Enter the following command to open the host file with a text editor (e.g. nano):<code>sudo nano \/etc\/hosts<\/code><\/li>\n\n<li>Enter your administrator password when requested.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 3: Edit the file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Add the desired lines, such as:Copy Code<code>127.0.0.1 www.example.com<\/code><\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 4: Save the file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Press <strong>Ctrl + O<\/strong> to save the file and <strong>Ctrl + X<\/strong> to leave nano.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 5: Flush the DNS cache<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>To apply the changes, enter the following command:Copy Code<code>sudo killall -HUP mDNSR Sponder<\/code><\/li>\n<\/ul>\n<p><\/p>\n<h4 class=\"wp-block-heading\">Linux<\/h4>\n<p><\/p>\n<p><strong>Step 1: Open the Terminal<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Open the <strong>Terminal<\/strong> on your Linux system.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 2: Open the host file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Use a text editor like nano to edit the host file:<code>sudo nano \/etc\/hosts<\/code><\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 3: Edit the file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Add the lines you want to change: Copy Code<code>127.0.0.1 www.example.com<\/code><\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 4: Save the file<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>Press <strong>Ctrl + O<\/strong> to save the file and <strong>Ctrl + X<\/strong> to leave the editor.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Step 5: Flush the DNS cache<\/strong><\/p>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li>To apply the changes, enter the following command:Copy Code<code>sudo systemctl restart network manager<\/code><\/li>\n<\/ul>\n<p><\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n<p><\/p>\n<h3 class=\"wp-block-heading\">Important tips:<\/h3>\n<p><\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Back up<\/strong>: It is always good to back up your host file before making changes so that you can fix it if something goes wrong.<\/li>\n\n<li><strong>Note the syntax<\/strong>: Make sure to use the correct syntax when adding IP addresses and domain names to avoid errors.<\/li>\n\n<li><strong>Test after adjustment<\/strong>: After adjusting the host file, check whether the desired changes are working correctly, for example by opening a website in your browser or using <code>ping<\/code> testing the domain.<\/li>\n<\/ul>\n<p><\/p>\n<p>By adjusting the host file, you can control how certain domains are handled on your computer. It is a powerful tool, but it should be used with caution to avoid accidental disruption of network settings.<\/p>\n<p><\/p>\n<p>Do you need help adjusting your host file or do you have other questions? Please feel free to contact us!<\/p>\n<p><\/p>\n        ","footnotes":""},"class_list":["post-3138","dh_kb_article","type-dh_kb_article","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Je hosts-bestand aanpassen voor een test | Drechthosting<\/title>\n<meta name=\"description\" content=\"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.drechthosting.nl\/en\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Je hosts-bestand aanpassen voor een test | Drechthosting\" \/>\n<meta property=\"og:description\" content=\"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.drechthosting.nl\/en\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/\" \/>\n<meta property=\"og:site_name\" content=\"Drechthosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DrechtHosting\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/servers-cinematic.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1448\" \/>\n\t<meta property=\"og:image:height\" content=\"1086\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Je hosts-bestand aanpassen voor een test | Drechthosting\" \/>\n<meta name=\"twitter:description\" content=\"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/servers-cinematic.webp\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/kennisdatabase\\\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\\\/\",\"url\":\"https:\\\/\\\/www.drechthosting.nl\\\/kennisdatabase\\\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\\\/\",\"name\":\"Je hosts-bestand aanpassen voor een test | Drechthosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/kennisdatabase\\\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/kennisdatabase\\\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.drechthosting.nl\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/servers-cinematic.webp\",\"datePublished\":\"2026-10-19T20:58:53+00:00\",\"description\":\"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/kennisdatabase\\\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.drechthosting.nl\\\/kennisdatabase\\\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/kennisdatabase\\\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.drechthosting.nl\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/servers-cinematic.webp\",\"contentUrl\":\"https:\\\/\\\/www.drechthosting.nl\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/servers-cinematic.webp\",\"width\":1448,\"height\":1086,\"caption\":\"Illustratief datacenter met moderne serverkasten en warm licht\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/kennisdatabase\\\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.drechthosting.nl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe pas je de host files aan en waarom pas je dit toe?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/#website\",\"url\":\"https:\\\/\\\/www.drechthosting.nl\\\/\",\"name\":\"Drechthosting\",\"description\":\"Betrouwbare Webhosting &amp; Domeinnamen\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.drechthosting.nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Organization\",\"LocalBusiness\"],\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/#organization\",\"name\":\"Drechthosting\",\"url\":\"https:\\\/\\\/www.drechthosting.nl\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.drechthosting.nl\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/drechthosting-organisatielogo-google.jpg\",\"contentUrl\":\"https:\\\/\\\/www.drechthosting.nl\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/drechthosting-organisatielogo-google.jpg\",\"width\":1254,\"height\":1254,\"caption\":\"Drechthosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.drechthosting.nl\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/DrechtHosting\\\/\",\"https:\\\/\\\/www.instagram.com\\\/drechthosting\\\/\"],\"telephone\":\"+31787200872\",\"email\":\"info@drechthosting.nl\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"Stellingmolen 400\",\"postalCode\":\"3352 BT\",\"addressLocality\":\"Papendrecht\",\"addressCountry\":\"NL\"},\"areaServed\":[{\"@type\":\"Country\",\"name\":\"Netherlands\"},{\"@type\":\"Place\",\"name\":\"Drechtsteden\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Je hosts-bestand aanpassen voor een test | Drechthosting","description":"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.drechthosting.nl\/en\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/","og_locale":"en_GB","og_type":"article","og_title":"Je hosts-bestand aanpassen voor een test | Drechthosting","og_description":"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.","og_url":"https:\/\/www.drechthosting.nl\/en\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/","og_site_name":"Drechthosting","article_publisher":"https:\/\/www.facebook.com\/DrechtHosting\/","og_image":[{"width":1448,"height":1086,"url":"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/servers-cinematic.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_title":"Je hosts-bestand aanpassen voor een test | Drechthosting","twitter_description":"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.","twitter_image":"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/servers-cinematic.webp","twitter_misc":{"Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/","url":"https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/","name":"Je hosts-bestand aanpassen voor een test | Drechthosting","isPartOf":{"@id":"https:\/\/www.drechthosting.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/#primaryimage"},"image":{"@id":"https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/#primaryimage"},"thumbnailUrl":"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/servers-cinematic.webp","datePublished":"2026-10-19T20:58:53+00:00","description":"Je hosts-bestand aanpassen om een website lokaal te testen? Bekijk waarom dit alleen op jouw apparaat werkt en herstel de instelling na de controle.","breadcrumb":{"@id":"https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/#primaryimage","url":"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/servers-cinematic.webp","contentUrl":"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/servers-cinematic.webp","width":1448,"height":1086,"caption":"Illustratief datacenter met moderne serverkasten en warm licht"},{"@type":"BreadcrumbList","@id":"https:\/\/www.drechthosting.nl\/kennisdatabase\/hoe-pas-je-de-host-files-aan-en-waarom-pas-je-dit-toe\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.drechthosting.nl\/"},{"@type":"ListItem","position":2,"name":"Hoe pas je de host files aan en waarom pas je dit toe?"}]},{"@type":"WebSite","@id":"https:\/\/www.drechthosting.nl\/#website","url":"https:\/\/www.drechthosting.nl\/","name":"Drechthosting","description":"Betrouwbare Webhosting &amp; Domeinnamen","publisher":{"@id":"https:\/\/www.drechthosting.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.drechthosting.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Organization","LocalBusiness"],"@id":"https:\/\/www.drechthosting.nl\/#organization","name":"Drechthosting","url":"https:\/\/www.drechthosting.nl\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.drechthosting.nl\/#\/schema\/logo\/image\/","url":"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/drechthosting-organisatielogo-google.jpg","contentUrl":"https:\/\/www.drechthosting.nl\/wp-content\/uploads\/2026\/10\/drechthosting-organisatielogo-google.jpg","width":1254,"height":1254,"caption":"Drechthosting"},"image":{"@id":"https:\/\/www.drechthosting.nl\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DrechtHosting\/","https:\/\/www.instagram.com\/drechthosting\/"],"telephone":"+31787200872","email":"info@drechthosting.nl","address":{"@type":"PostalAddress","streetAddress":"Stellingmolen 400","postalCode":"3352 BT","addressLocality":"Papendrecht","addressCountry":"NL"},"areaServed":[{"@type":"Country","name":"Netherlands"},{"@type":"Place","name":"Drechtsteden"}]}]}},"_links":{"self":[{"href":"https:\/\/www.drechthosting.nl\/en\/wp-json\/wp\/v2\/kennisbankartikelen\/3138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.drechthosting.nl\/en\/wp-json\/wp\/v2\/kennisbankartikelen"}],"about":[{"href":"https:\/\/www.drechthosting.nl\/en\/wp-json\/wp\/v2\/types\/dh_kb_article"}],"version-history":[{"count":0,"href":"https:\/\/www.drechthosting.nl\/en\/wp-json\/wp\/v2\/kennisbankartikelen\/3138\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.drechthosting.nl\/en\/wp-json\/wp\/v2\/media\/258"}],"wp:attachment":[{"href":"https:\/\/www.drechthosting.nl\/en\/wp-json\/wp\/v2\/media?parent=3138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}