Select Language:
If you’re having trouble calling a specific website or online tool, there’s a simple way to fix it by checking your computer’s hosts file. Sometimes, websites get blocked or redirected on your device because of entries in this file, which acts like a blacklist or whitelist for web addresses. Here’s an easy, step-by-step method to correct this issue.
First, locate your hosts file. On Windows, it’s usually found at C:\Windows\System32\drivers\etc\hosts. On Mac or Linux, it’s at /etc/hosts. To open and edit this file, you’ll need administrator permissions.
Start by opening Notepad (Windows) or TextEdit (Mac) as an administrator or with root privileges. On Windows, right-click on Notepad and select “Run as administrator,” then open the hosts file from within Notepad. On Mac, open Terminal, and type sudo nano /etc/hosts to open the hosts file in nano editor.
Once you have the hosts file open, look through the entries for anything related to the website you’re trying to access. Sometimes, entries that block or redirect websites can cause issues. These entries will look like 127.0.0.1 example.com or similar.
If you find any entries that mention the site you’re trying to reach, delete those lines. Be careful only to remove the lines related to the website in question to avoid disrupting other connections.
After editing, save the file. If you’re on Windows, just click File > Save. On Mac, press Control + O to save, then Control + X to exit nano if you’re using Terminal.
Now, you need to clear your browser’s cache and DNS cache. This step ensures your browser fetches the latest version of the website. For most browsers, you can do this by pressing Ctrl + Shift + Delete or Command + Shift + Delete and selecting cache options. To clear DNS cache, you can run commands such as ipconfig /flushdns on Windows or sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder on Mac.
Finally, restart your web browser and try to access the website again. Usually, this simple fix works if the problem was caused by a blocked or redirected hosts file entry. If the site still doesn’t load, double-check the hosts file for remaining issues or consider rebooting your device for good measure.
By following these steps, you can make sure your device correctly accesses the websites you need without unnecessary blocks or redirects.





