- Hosts File Examples
- Patch Hosts File Windows
- Adobe Host File Patch
- Host File Settings
- Patch Hosts File Adobe
Since Windows 8, Microsoft has moved to a new commercial strategy: in addition with traditional selling of OS licenses, started got revenues from searches, apps and games.
But to do this, MS has started the collection of “telemetry” data, considered by many users as privacy-relevant.
But to do this, MS has started the collection of “telemetry” data, considered by many users as privacy-relevant.
Adobe CC 2019 activation host block. GitHub Gist: instantly share code, notes, and snippets. I tried to modify the hosts file to block a website, but when I save it says: C: Windows System32 drivers etc hosts.txt You don't have permission to save in this location Contact your administrator to. I have a batch script to add several lines to my hosts file to block certain websites on my computer. I would like to use the batch script in such a way that when I run my example.bat, it first checks if the lines to add exist, and if they don't then add them. But the batch file should delete the lines in case of existing already in hosts file. Your hosts file modification should look like: 202.133.229.123 my-wordpress-site.com 202.133.229.123 www.my-wordpress-site.com. Where the IP address is the IP address of the server where you are hosting the website files and the domain you are using to build the website. Adding files to the hosts file is very simple. The hosts file uses the format: IP Address exampledomain.com. Blocking a website in Windows is as simple as typing the following into the bottom of the hosts file: 127.0.0.1 www.exampledomain.com. So, if I wanted to block a website like www.nytimes.com, I could just add the following line.
What is Windows 10 telemetry?
According with a ZDNet article [4]:
Microsoft defines telemetry as “system data that is uploaded by the Connected User Experience and Telemetry component,” also known as the Universal Telemetry Client, or UTC service. (More on that shortly.)
Microsoft uses telemetry data from Windows 10 to identify security and reliability issues, to analyze and fix software problems, to help improve the quality of Windows and related services, and to make design decisions for future releases.
Telemetry features aren’t unique to Microsoft and there’s nothing particularly secret about them. They’re part of a larger trend in the software industry to collect and analyze event data as part of a shift to data-driven decision making.
Microsoft uses telemetry data from Windows 10 to identify security and reliability issues, to analyze and fix software problems, to help improve the quality of Windows and related services, and to make design decisions for future releases.
Telemetry features aren’t unique to Microsoft and there’s nothing particularly secret about them. They’re part of a larger trend in the software industry to collect and analyze event data as part of a shift to data-driven decision making.
To the delight of privacy conscious users, there are a lot of tutorials [5] and suggestions focused on avoid (or rather, reduce) the gathering of informations collected from Windows 10, using tools like PeerBlock[1], personal firewalls, network devices (like a Pi-Hole[2]).
In my opinion, a good trade-off may be a simple change on the “hosts” file.
What is “hosts” file?
The hosts file is used to map hostnames to IP addresses, and its data overrides the results of DNS queries.
It’s a plain text file, located in the Windows folder, at the following path:
It’s a plain text file, located in the Windows folder, at the following path:
A customized hosts file
Usually i use a custom hosts file created by encrypt-the-planet.com[3]: the file was realized analyzing with wireshark a dump of outgoing traffic of a brand-new Windows 10 installation.
Obviously, this is not a final solution.
According with ETP’s notes:
According with ETP’s notes:
You should also be aware: this hosts file will block certain functions and services like Bing search, Cortana and One Cloud. Windows updates will still be able to download.
Windows 10 does communicate directly to IP addresses which bypass the hosts file. You would also have to block Microsoft’s IP addresses Windows 10 communicates with.
Windows 10 does communicate directly to IP addresses which bypass the hosts file. You would also have to block Microsoft’s IP addresses Windows 10 communicates with.
How to install the custom file?
Just four simple steps:
- Open this link, and copy the whole text
- Start (with administrative rights) a Notepad (but Notepad++ is better) and open the hosts file in C:WindowsSystem32driversetchosts.
- Replace the original hosts content with the text copied at step 1
- Save the file and restart your system.
References
Dies ist der Code für ein Programm, das die Hosts-Datei eines Rechners so ändert, dass auch 'halblegale' Versionen von Adobe und Audials funktionieren.
Dies ist für den Fall gedacht, dass ein Privatanwender z.b Photoshop Elements auf zwei Rechner zu Hause benutzen möchte. Dies lässt Adobe aber leider nicht zu. Die Hosts-Datei lässt sich außerdem mit dem Programm in ihren Ursprungszustand zurücksetzen.
Außerdem bietet das Programm gleich die Möglichkeit die entsprechenden Seriennummern auch gleich anzuzeigen. (bei mir gibt es keine Seriennummern)
:language
echo Select a language:
echo ##################
echo.
echo German
echo English
echo Select a language:
echo ##################
echo.
echo German
echo English
set /p web=
if '%web%'g' goto german
if '%web%'e' goto english
goto language
if '%web%'g' goto german
if '%web%'e' goto english
goto language
:german
cls
echo Bitte waehlen Sie eine Aufgabe:
echo ###############################
echo.
echo 1) Patch hosts-Datei
echo 2) Seriennummern
echo 3) Hilfe
echo 4) Ende
cls
echo Bitte waehlen Sie eine Aufgabe:
echo ###############################
echo.
echo 1) Patch hosts-Datei
echo 2) Seriennummern
echo 3) Hilfe
echo 4) Ende
set /p web=
if '%web%'1' goto patch_ger
if '%web%'2' goto serials_ger
if '%web%'3' goto help_ger
if '%web%'4' goto exit_ger
goto german
if '%web%'1' goto patch_ger
if '%web%'2' goto serials_ger
if '%web%'3' goto help_ger
if '%web%'4' goto exit_ger
goto german
:english
cls
echo Plaese select a task:
echo #####################
echo.
echo 1) patch hosts-file
echo 2) serialnumbers
echo 3) help
echo 4) exit
cls
echo Plaese select a task:
echo #####################
echo.
echo 1) patch hosts-file
echo 2) serialnumbers
echo 3) help
echo 4) exit
set /p web=
if '%web%'1' goto patch_eng
if '%web%'2' goto serials_eng
if '%web%'3' goto help_eng
if '%web%'4' goto exit_eng
goto english
if '%web%'1' goto patch_eng
if '%web%'2' goto serials_eng
if '%web%'3' goto help_eng
if '%web%'4' goto exit_eng
goto english
:patch_ger
cls
echo Bitte waehlen Sie eine Option:
echo ##############################
echo.
echo 1) Adobe-Produkte
echo 2) Audials One 9
echo 3) Reset hosts-Datei
echo 4) Hauptmenue
cls
echo Bitte waehlen Sie eine Option:
echo ##############################
echo.
echo 1) Adobe-Produkte
echo 2) Audials One 9
echo 3) Reset hosts-Datei
echo 4) Hauptmenue
set /p web=
if '%web%'1' goto adobe_ger
if '%web%'2' goto audials_ger
if '%web%'3' goto reset_ger
if '%web%'4' goto german
goto patch_ger
if '%web%'1' goto adobe_ger
if '%web%'2' goto audials_ger
if '%web%'3' goto reset_ger
if '%web%'4' goto german
goto patch_ger
:adobe_ger
echo 127.0.0.1 activate.adobe.com >> %systemroot%/system32/drivers/etc/hosts
echo hosts-Datei erfolgreich gepatched!
ping /n 5 127.0.0.1 >Nul
goto patch_ger
echo 127.0.0.1 activate.adobe.com >> %systemroot%/system32/drivers/etc/hosts
echo hosts-Datei erfolgreich gepatched!
ping /n 5 127.0.0.1 >Nul
goto patch_ger
:audials_ger
echo 127.0.0.1 userstats.audials.com >> %systemroot%/system32/drivers/etc/hosts
echo 127.0.0.1 shop.audials.com >> %systemroot%/system32/drivers/etc/hosts
echo hosts-Datei erfolgreich gepatched!
ping /n 5 127.0.0.1 >Nul
goto patch_ger
echo 127.0.0.1 userstats.audials.com >> %systemroot%/system32/drivers/etc/hosts
echo 127.0.0.1 shop.audials.com >> %systemroot%/system32/drivers/etc/hosts
echo hosts-Datei erfolgreich gepatched!
ping /n 5 127.0.0.1 >Nul
goto patch_ger
:serials_ger
cls
echo Waehlen Sie eine Seriennummer:
echo ##############################
echo.
echo 1) Adobe Mastercollection CS5.5
echo 2) Adobe Acrobat Prof X
echo 3) Adobe Photoshop Elemets 10
echo 4) Adobe Lightroom 4
echo 5) Audials One 9
echo 6) Hauptmenue
cls
echo Waehlen Sie eine Seriennummer:
echo ##############################
echo.
echo 1) Adobe Mastercollection CS5.5
echo 2) Adobe Acrobat Prof X
echo 3) Adobe Photoshop Elemets 10
echo 4) Adobe Lightroom 4
echo 5) Audials One 9
echo 6) Hauptmenue
set /p web=
if '%web%'1' goto master
if '%web%'2' goto acrobat
if '%web%'3' goto elements
if '%web%'4' goto lightroom
if '%web%'5' goto audials
if '%web%'6' goto german
if '%web%'1' goto master
if '%web%'2' goto acrobat
if '%web%'3' goto elements
if '%web%'4' goto lightroom
if '%web%'5' goto audials
if '%web%'6' goto german
:master
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/MastercollectionCS5.5.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
ping /n 4 127.0.0.1 >Nul
goto serials_ger
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/MastercollectionCS5.5.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
ping /n 4 127.0.0.1 >Nul
goto serials_ger
:acrobat
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/AcrobatProX.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
ping /n 4 127.0.0.1 >Nul
goto serials_ger
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/AcrobatProX.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
ping /n 4 127.0.0.1 >Nul
goto serials_ger
:elements
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/PhotoshopElements10.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
ping /n 4 127.0.0.1 >Nul
goto serials_eng
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/PhotoshopElements10.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
ping /n 4 127.0.0.1 >Nul
goto serials_eng
:lightroom
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/Lightroom4.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/Lightroom4.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
:audials
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/AudialsOne9.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/AudialsOne9.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
:patch_eng
cls
echo Please select an option:
echo ########################
echo.
echo 1) Adobe-products
echo 2) Audials One 9
echo 3) reset hosts-file
echo 4) Mainmenue
cls
echo Please select an option:
echo ########################
echo.
echo 1) Adobe-products
echo 2) Audials One 9
echo 3) reset hosts-file
echo 4) Mainmenue
![File File](/uploads/1/2/6/4/126474839/826605520.png)
set /p web=
if '%web%'1' goto adobe_eng
if '%web%'2' goto audials_eng
if '%web%'3' goto reset_eng
if '%web%'4' goto english
goto patch_eng
if '%web%'1' goto adobe_eng
if '%web%'2' goto audials_eng
if '%web%'3' goto reset_eng
if '%web%'4' goto english
goto patch_eng
Hosts File Examples
:adobe_eng
echo 127.0.0.1 activate.adobe.com >> %systemroot%/system32/drivers/etc/hosts
echo hosts-file successfully patched!
ping /n 4 127.0.0.1 >Nul
goto patch_eng
echo 127.0.0.1 activate.adobe.com >> %systemroot%/system32/drivers/etc/hosts
echo hosts-file successfully patched!
ping /n 4 127.0.0.1 >Nul
goto patch_eng
:audials_eng
echo 127.0.0.1 userstats.audials.com >> %systemroot%/system32/drivers/etc/hosts
echo 127.0.0.1 shop.audials.com >> %systemroot%/system32/drivers/etc/hosts
echo hosts-file successfully patched!!
ping /n 4 127.0.0.1 >Nul
goto patch_eng
echo 127.0.0.1 userstats.audials.com >> %systemroot%/system32/drivers/etc/hosts
echo 127.0.0.1 shop.audials.com >> %systemroot%/system32/drivers/etc/hosts
echo hosts-file successfully patched!!
ping /n 4 127.0.0.1 >Nul
goto patch_eng
:serials_eng
cls
echo Please select a serial number:
echo ##############################
echo.
echo 1) Adobe Mastercollection CS5.5
echo 2) Adobe Acrobat Prof X
echo 3) Adobe Photoshop Elemets 10
echo 4) Adobe Lightroom 4
echo 5) Audials One 9
echo 6) Mainmenue
set /p web=
if '%web%'1' goto master
if '%web%'2' goto acrobat
if '%web%'3' goto elements
if '%web%'4' goto lightroom
if '%web%'5' goto audials
if '%web%'6' goto english
if '%web%'1' goto master
if '%web%'2' goto acrobat
if '%web%'3' goto elements
if '%web%'4' goto lightroom
if '%web%'5' goto audials
if '%web%'6' goto english
:master
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/MastercollectionCS5.5.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
ping /n 4 127.0.0.1 >Nul
goto serials_eng
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/MastercollectionCS5.5.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
ping /n 4 127.0.0.1 >Nul
goto serials_eng
:acrobat
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/AcrobatProX.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/AcrobatProX.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
:elements
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/PhotoshopElements10.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/PhotoshopElements10.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
:lightroom
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/Lightroom4.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
cls
echo xxxx-xxxx-xxxx-xxxx-xxxx >> %UserProfile%/Desktop/Lightroom4.txt
echo xxxx-xxxx-xxxx-xxxx-xxxx
:audials
cls
echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> %UserProfile%/Desktop/AudialsOne9.txt
echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cls
echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> %UserProfile%/Desktop/AudialsOne9.txt
echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
:help_ger
cls
echo Hilfe zum Patchen der hosts-Datei:
echo ##################################
echo.
echo Damit die in diesem Programm enthaltenen Seriennummer genutzt werden zu koennen,
echo muessen einige Werte in die hosts-Datei des Rechners eingetragen werden.
echo Dies erledigt dieses Program selbststaendig,
echo was diesen Vorgang erheblich erleichtert.
echo Nach dem Patchen der hosts-Datei koennen alle enthaltenen Serials
echo ohne Einschraenkungen genutzt werden.
echo Zum Zurueckkehren 'ESC' drueken
pause > Nul
goto german
cls
echo Hilfe zum Patchen der hosts-Datei:
echo ##################################
echo.
echo Damit die in diesem Programm enthaltenen Seriennummer genutzt werden zu koennen,
echo muessen einige Werte in die hosts-Datei des Rechners eingetragen werden.
echo Dies erledigt dieses Program selbststaendig,
echo was diesen Vorgang erheblich erleichtert.
echo Nach dem Patchen der hosts-Datei koennen alle enthaltenen Serials
echo ohne Einschraenkungen genutzt werden.
echo Zum Zurueckkehren 'ESC' drueken
pause > Nul
goto german
:help_eng
cls
echo Help for patching the hosts-file:
echo #################################
echo.
echo Before the serials in this program can be used, there had to be changed some
echo values in the host-file on your computer. The program does it on its own.
echo After patching the hosts-file, all inclueded serialnumbers can be
echo used without any reservations.
echo To return to the mainmenue press 'esc'
pause > Nul
goto english
cls
echo Help for patching the hosts-file:
echo #################################
echo.
echo Before the serials in this program can be used, there had to be changed some
echo values in the host-file on your computer. The program does it on its own.
echo After patching the hosts-file, all inclueded serialnumbers can be
echo used without any reservations.
echo To return to the mainmenue press 'esc'
pause > Nul
goto english
:exit_ger
cls
echo Wollen Sie wirklich beenden?
choice /t 30 /C YN /D Y
If Errorlevel = 2 goto no_ger
If Errorlevel = 1 goto yes_ger
cls
echo Wollen Sie wirklich beenden?
choice /t 30 /C YN /D Y
If Errorlevel = 2 goto no_ger
If Errorlevel = 1 goto yes_ger
:no_ger
cls
goto german
cls
goto german
:yes_ger
cls
echo Vielen Dank fuer die Benutzung dieses Programmes.
ping /n 4 127.0.0.1 >Nul
exit
cls
echo Vielen Dank fuer die Benutzung dieses Programmes.
ping /n 4 127.0.0.1 >Nul
exit
Patch Hosts File Windows
:exit_end
cls
echo Are you shure, you want to quit?
choice /t 30 /C YN /D Y
If Errorlevel = 2 goto no_eng
If Errorlevel = 1 goto yes_eng
cls
echo Are you shure, you want to quit?
choice /t 30 /C YN /D Y
If Errorlevel = 2 goto no_eng
If Errorlevel = 1 goto yes_eng
:no_eng
cls
goto english
cls
goto english
:yes_eng
cls
echo Thanks for using this little program.
ping /n 4 127.0.0.1 >nul
exit
cls
echo Thanks for using this little program.
ping /n 4 127.0.0.1 >nul
exit
Adobe Host File Patch
:reset_eng
cls
cd %systemroot%/system32/drivers/etc
del /f hosts
cls
cd %systemroot%/system32/drivers/etc
del /f hosts
echo # Copyright (c) 1993-2009 Microsoft Corp. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # This file contains the mappings of IP addresses to host names. Each >> %systemroot%/system32/drivers/etc/hosts
echo # entry should be kept on an individual line. The IP address should >> %systemroot%/system32/drivers/etc/hosts
echo # be placed in the first column followed by the corresponding host name. >> %systemroot%/system32/drivers/etc/hosts
echo # The IP address and the host name should be separated by at least one >> %systemroot%/system32/drivers/etc/hosts
echo # space. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # Additionally, comments (such as these) may be inserted on individual >> %systemroot%/system32/drivers/etc/hosts
echo # lines or following the machine name denoted by a '#' symbol. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # For example: >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # 102.54.94.97 rhino.acme.com # source server >> %systemroot%/system32/drivers/etc/hosts
echo # 38.25.63.10 x.acme.com # x client host >> %systemroot%/system32/drivers/etc/hosts
echo. >> %systemroot%/system32/drivers/etc/hosts
echo # localhost name resolution is handled within DNS itself. >> %systemroot%/system32/drivers/etc/hosts
echo # 127.0.0.1 localhost >> %systemroot%/system32/drivers/etc/hosts
echo # ::1 localhost >> %systemroot%/system32/drivers/etc/hosts
echo hosts-file reseted!
ping /n 4 127.0.0.1 > Nul
goto patch_eng
ping /n 4 127.0.0.1 > Nul
goto patch_eng
Host File Settings
:reset_ger
cls
cd %systemroot%system32driversetc
del hosts
del /f hosts
cls
cd %systemroot%system32driversetc
del hosts
del /f hosts
Patch Hosts File Adobe
echo # Copyright (c) 1993-2009 Microsoft Corp. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # This file contains the mappings of IP addresses to host names. Each >> %systemroot%/system32/drivers/etc/hosts
echo # entry should be kept on an individual line. The IP address should >> %systemroot%/system32/drivers/etc/hosts
echo # be placed in the first column followed by the corresponding host name. >> %systemroot%/system32/drivers/etc/hosts
echo # The IP address and the host name should be separated by at least one >> %systemroot%/system32/drivers/etc/hosts
echo # space. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # Additionally, comments (such as these) may be inserted on individual >> %systemroot%/system32/drivers/etc/hosts
echo # lines or following the machine name denoted by a '#' symbol. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # For example: >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # 102.54.94.97 rhino.acme.com # source server >> %systemroot%/system32/drivers/etc/hosts
echo # 38.25.63.10 x.acme.com # x client host >> %systemroot%/system32/drivers/etc/hosts
echo. >> %systemroot%/system32/drivers/etc/hosts
echo # localhost name resolution is handled within DNS itself. >> %systemroot%/system32/drivers/etc/hosts
echo # 127.0.0.1 localhost >> %systemroot%/system32/drivers/etc/hosts
echo # ::1 localhost >> %systemroot%/system32/drivers/etc/hosts
echo hosts-Datei erfolgreich zurueckgesetzt!
ping /n 4 127.0.0.1 > Nul
goto patch_ger
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # This file contains the mappings of IP addresses to host names. Each >> %systemroot%/system32/drivers/etc/hosts
echo # entry should be kept on an individual line. The IP address should >> %systemroot%/system32/drivers/etc/hosts
echo # be placed in the first column followed by the corresponding host name. >> %systemroot%/system32/drivers/etc/hosts
echo # The IP address and the host name should be separated by at least one >> %systemroot%/system32/drivers/etc/hosts
echo # space. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # Additionally, comments (such as these) may be inserted on individual >> %systemroot%/system32/drivers/etc/hosts
echo # lines or following the machine name denoted by a '#' symbol. >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # For example: >> %systemroot%/system32/drivers/etc/hosts
echo # >> %systemroot%/system32/drivers/etc/hosts
echo # 102.54.94.97 rhino.acme.com # source server >> %systemroot%/system32/drivers/etc/hosts
echo # 38.25.63.10 x.acme.com # x client host >> %systemroot%/system32/drivers/etc/hosts
echo. >> %systemroot%/system32/drivers/etc/hosts
echo # localhost name resolution is handled within DNS itself. >> %systemroot%/system32/drivers/etc/hosts
echo # 127.0.0.1 localhost >> %systemroot%/system32/drivers/etc/hosts
echo # ::1 localhost >> %systemroot%/system32/drivers/etc/hosts
echo hosts-Datei erfolgreich zurueckgesetzt!
ping /n 4 127.0.0.1 > Nul
goto patch_ger