Save hosts file without extension




















Your email address will not be published. July 25, Share on Facebook Share on Twitter. Tags: Hosts File Tutorials Windows Related Posts. That way, unable to save hosts file issue will be resolved. It can be a hassle to open the Notepad as an administrator and then edit the Hosts file. The software is pretty simple to use. The best thing about the BlueLife Hosts Editor editor is that it makes adding and removing entries easy. All you have do is click a few buttons and you are done. You can download the software from here.

Hope that helps. Find out from your web host where you need to upload your files so that they will be displayed correctly. If you have checked and know for sure that you have not committed this error, move on to the next section. The other possible reason for the error is Notepad. Notepad, up to the current version, has the practice of adding a ". So if you give your file a name of " xyz. Compounding this problem is Windows Explorer's policy of not telling you the full filename of your files.

Hence if you use Explorer to check the file, it will only show " xyz. If you have already saved your file, the best way to solve this is to first force Explorer to always show you the file extension , and then change the filename to the correct one. This is good practice anyway, since always being able to see the full filename probably improves your system's security — you'll be less likely to be tricked by all those scams asking you to click a file that appears to be a picture but is actually a program.

On Windows, click the Start menu, and type "folder options" without the quotes , and click the "Folder Options" line that appears near the top of the Start menu. Click the "View" tab in the dialog box that appears. Look for a setting "Hide file extensions for known file types" and uncheck the box beside it to disable it.

Then click the "OK" button at the bottom of the dialog box. Note that everything is commented out with characters, meaning that nothing is actually being read from the hosts file. Modern versions of Windows include a sort of DNS system already, so if you visit localhost it'll automatically redirect you to If you're doing some local development and are having problems with localhost, you can just remove the comments from your hosts file:.

Then, open PowerShell by pressing the Windows key, searching for "powershell", and clicking "Run as Administrator":. After that, you should be able to visit localhost in your browser and see whatever you're hacking on. If you're still having issues, try closing your browser completely, then open a new browser window and try again.

Even though hosts files have fallen out of favor with newer systems like DNS, they still work for legacy reasons. And hackers have definitely taken advantage of this in the past. What they would do is point a common website like google. This IP address could serve a site that looks just like Google's, but is actually trying to steal your sensitive information. While this was a problem in the past, most security software like the Windows Security Suite can recognize and fix problems with the hosts file automatically.

That said, if you open up your hosts file and see a lot of strange entries, then you may want to revert to the default Windows hosts file. Just copy and paste the default hosts file from earlier in the article into your hosts file and save. Note that some third-party security software uses the hosts file to block dangerous websites. If that's the case, no worries — your security software should add all those entries back to your hosts file.

We'll go over how this works in the next section. Don't want friends or family to visit certain websites on your computer? Or are you like me and get distracted by all the cat photos on the internet?

Also, close the browser windows that are open and reopen them. The one downside is that this only works on one device — you could just reach for your phone and browse Reddit on that instead. Still, it's a neat way to create some friction on your work computer. This leads nicely into the last trick, which is to use the hosts file to make your life a little bit easier.



0コメント

  • 1000 / 1000