{"id":13828,"date":"2023-11-24T00:00:00","date_gmt":"2023-11-24T00:00:00","guid":{"rendered":"https:\/\/tuttodigitale.net\/t\/come-modificare-il-file-hosts-su-mac\/"},"modified":"2023-11-24T00:00:00","modified_gmt":"2023-11-24T00:00:00","slug":"come-modificare-il-file-hosts-su-mac","status":"publish","type":"post","link":"https:\/\/tuttodigitale.net\/t\/come-modificare-il-file-hosts-su-mac\/","title":{"rendered":"Come modificare il file hosts su Mac?"},"content":{"rendered":"<p>To modify the Host file on Mac OS, follow these steps:<\/p>\n<ol>\n<li>Open the terminal.<\/li>\n<li>Type the command: <code>sudo nano \/private\/etc\/hosts<\/code>.<\/li>\n<li>Enter your password.<\/li>\n<li>Make the necessary modifications at the end of the text (e.g., <code>127.0.0.1 www.yourwebsite.com<\/code>).<\/li>\n<li>Press <code>CTRL + O<\/code> to save the changes.<\/li>\n<\/ol>\n<p>To modify the Host file on Windows XP, 7, 8, and 10, do the following:<\/p>\n<ol>\n<li>Open the start menu and right-click on &quot;Editor&quot;.<\/li>\n<li>Select &quot;File&quot; in the &quot;Open&quot; menu.<\/li>\n<li>Using Windows Explorer, open the Host file located at <code>C:WindowsSystem32driversetchosts<\/code>.<\/li>\n<li>Proceed with the modifications to the Host file.<\/li>\n<\/ol>\n<p>To find your computer&#8217;s name on Windows 10, follow these steps:<\/p>\n<ol>\n<li>Open the Control Panel and select &quot;System and Security&quot;.<\/li>\n<li>Click on &quot;System&quot;.<\/li>\n<li>In the &quot;Computer name, domain, and workgroup settings&quot; section, you will find the full name of your computer on the page displaying basic computer information.<\/li>\n<\/ol>\n<p>To find your IP address, follow these steps:<\/p>\n<ol>\n<li>Open the command prompt in Windows.<\/li>\n<li>Type the command: <code>ipconfig<\/code>.<\/li>\n<li>The system will return a series of information, including the currently used IP address.<\/li>\n<\/ol>\n<p>To find your computer&#8217;s domain, do the following:<\/p>\n<ol>\n<li>Open File Explorer (or the Start menu) and right-click on the &quot;This PC&quot; icon.<\/li>\n<li>Choose &quot;Properties&quot;.<\/li>\n<li>In the opened screen, look for the section &quot;Computer name, domain, and workgroup settings&quot; under the computer name.<\/li>\n<\/ol>\n<p>Localhost 8888 is a method to check for the presence of spy apps on your smartphone. To verify the presence of spy apps, enter the following code in your browser: <code>localhost:8888<\/code>.<\/p>\n<p>To block a website using the Host file, follow these steps:<\/p>\n<ol>\n<li>Insert the IP address <code>127.0.0.1<\/code> and the address of the website you want to block (e.g., <code>127.0.0.1 www.facebook.com<\/code>).<\/li>\n<li>Restart your PC. This way, every time a browser tries to access that website, the Host file will redirect it to a non-existent local resource.<\/li>\n<\/ol>\n<p>To block a line in the Host file, do the following:<\/p>\n<ol>\n<li>Type &quot;Notepad&quot; in the Start menu search bar.<\/li>\n<li>Right-click on the &quot;Notepad&quot; option and select &quot;Run as administrator&quot;.<\/li>\n<li>Open the Host file using the &quot;File -&gt; Open&quot; menu in Notepad.<\/li>\n<\/ol>\n<p>To locate the Host file in Windows 7, follow these steps:<\/p>\n<ol>\n<li>Select Start and then Run.<\/li>\n<li>Type <code>%WinDir%System32DriversEtc<\/code> and select OK.<\/li>\n<li>Select the Host file and rename it to &quot;Hosts&quot;.<\/li>\n<\/ol>\n<p>The IP address of your router is the set of numbers you find next to the label &quot;Default Gateway&quot;. Alternatively, you can find the IP address of the router through the Network Connections and Sharing Center.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To modify the Host file on Mac OS, follow these steps: Open the terminal. Type the command: sudo nano \/private\/etc\/hosts. Enter your password. Make the necessary modifications at the end of the text (e.g., 127.0.0.1 www.yourwebsite.com). Press CTRL + O to save the changes. To modify the Host file on Windows XP, 7, 8, and &#8230; <a title=\"Come modificare il file hosts su Mac?\" class=\"read-more\" href=\"https:\/\/tuttodigitale.net\/t\/come-modificare-il-file-hosts-su-mac\/\" aria-label=\"Per saperne di pi\u00f9 su Come modificare il file hosts su Mac?\">Leggi tutto<\/a><\/p>\n","protected":false},"author":3111,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-13828","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/posts\/13828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/users\/3111"}],"replies":[{"embeddable":true,"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/comments?post=13828"}],"version-history":[{"count":0,"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/posts\/13828\/revisions"}],"wp:attachment":[{"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/media?parent=13828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/categories?post=13828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tuttodigitale.net\/t\/wp-json\/wp\/v2\/tags?post=13828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}