
You should now be able to play Minecraft again, please never use any illegal tools or accounts.
Remove any line containing "Mojang" then save the hosts file. Open a terminal application (search for terminal in your application launcher). Your user needs to be a sudoer (have administrative privileges), otherwise you need to log as the superuser if you know the password or ask assistance to your system administrator. Remove every line mentioning "Mojang" and hit save (Ctrl+S). Press Ctrl and O on your keyboard, then enter %SystemRoot%\System32\drivers\etc\hosts as the "File name" and press "Open". Right click notepad and select Run as Administrator
Go to the Start Menu and locate notepad.
To fix this, you need to remove any non-official software, then you need to fix your affected hosts file by doing the following: On Windows
This issue is likely caused by using illegal or incompatible software, which are known to corrupt your hosts list by redirecting any Mojang authentification server address to their own illicit servers.